Disabled JMX from other tests

This commit is contained in:
Oleg Zhurakousky
2018-11-16 15:23:51 +01:00
parent 054f4f47ba
commit 619b3ccc8b
2 changed files with 4 additions and 3 deletions

View File

@@ -104,7 +104,8 @@ public class HealthIndicatorsConfigurationTests {
ConfigurableApplicationContext context = createBinderTestContext(
new String[] { "binder1", "binder2" },
"spring.cloud.stream.defaultBinder:binder2",
"management.health.binders.enabled:false");
"management.health.binders.enabled:false",
"--spring.jmx.enabled=false");
Binder binder1 = context.getBean(BinderFactory.class).getBinder("binder1", MessageChannel.class);
assertThat(binder1).isInstanceOf(StubBinder1.class);

View File

@@ -46,8 +46,8 @@ public class InputOutputBindingOrderTest {
@Test
public void testInputOutputBindingOrder() {
ConfigurableApplicationContext applicationContext = SpringApplication.run(TestSource.class,
"--spring.cloud.stream.defaultBinder=mock");
@SuppressWarnings("rawtypes")
"--spring.cloud.stream.defaultBinder=mock",
"--spring.jmx.enabled=false");
Binder binder = applicationContext.getBean(BinderFactory.class).getBinder(null, MessageChannel.class);
Processor processor = applicationContext.getBean(Processor.class);
// input is bound after the context has been started