Skip to content

Commit 2cacc19

Browse files
committed
Polish
See gh-5901
1 parent a4ba8f6 commit 2cacc19

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/integration/IntegrationAutoConfigurationTests.java

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.springframework.integration.support.channel.HeaderChannelRegistry;
3131
import org.springframework.test.context.support.TestPropertySourceUtils;
3232

33-
import static org.hamcrest.Matchers.hasSize;
3433
import static org.junit.Assert.assertEquals;
3534
import static org.junit.Assert.assertNotNull;
3635

@@ -57,27 +56,9 @@ public void close() {
5756
@Test
5857
public void integrationIsAvailable() {
5958
load();
60-
MBeanServer mBeanServer = this.context.getBean(MBeanServer.class);
61-
assertDomains(mBeanServer, true, "org.springframework.integration",
62-
"org.springframework.integration.monitor");
6359
assertNotNull(this.context.getBean(HeaderChannelRegistry.class));
6460
}
6561

66-
@Test
67-
public void disableIntegration() {
68-
load("spring.jmx.enabled=false");
69-
assertEquals(0, this.context.getBeansOfType(MBeanServer.class).size());
70-
}
71-
72-
@Test
73-
public void customizeDomain() {
74-
load("spring.jmx.default-domain=org.foo");
75-
MBeanServer mBeanServer = this.context.getBean(MBeanServer.class);
76-
assertDomains(mBeanServer, true, "org.foo");
77-
assertDomains(mBeanServer, false, "org.springframework.integration",
78-
"org.springframework.integration.monitor");
79-
}
80-
8162
@Test
8263
public void parentContext() {
8364
this.context = new AnnotationConfigApplicationContext();
@@ -106,7 +87,7 @@ public void jmxIntegrationEnabledByDefault() {
10687
@Test
10788
public void disableJmxIntegration() {
10889
load("spring.jmx.enabled=false");
109-
assertEquals(this.context.getBeansOfType(MBeanServer.class), hasSize(0));
90+
assertEquals(0, this.context.getBeansOfType(MBeanServer.class).size());
11091
}
11192

11293
@Test

0 commit comments

Comments
 (0)