@Override public boolean isRunning() { return this.gatherEndpoint == null || this.gatherEndpoint.isRunning(); }
@Override public boolean isRunning() { return (this.endpoint != null) && this.endpoint.isRunning(); }
@Before public void setup() { if (!this.outGateway.isRunning()) { TestingUtilities.waitListening(this.crLfServer, 10000L); this.client.setPort(this.crLfServer.getPort()); this.outGateway.start(); } }
@Before public void setup() { if (!this.outGateway.isRunning()) { TestingUtilities.waitListening(this.crLfServer, 10000L); this.client.setPort(this.crLfServer.getPort()); this.outGateway.start(); } }
@Before public void setup() { if (!this.outGateway.isRunning()) { TestingUtilities.waitListening(this.crLfServer, 10000L); this.client.setPort(this.crLfServer.getPort()); this.outGateway.start(); } }
@Before public void setup() { if (!this.outGateway.isRunning()) { TestingUtilities.waitListening(this.crLfServer, 10000L); this.client.setPort(this.crLfServer.getPort()); this.outGateway.start(); } }
@Override @ManagedAttribute public final boolean isRunning() { return this.delegate.isRunning(); }
@Override public boolean isRunning() { return (this.endpoint != null) && this.endpoint.isRunning(); }
@Override public boolean isRunning() { return endpoint.isRunning(); }
@Test public void testIntegrationContextComponents() { assertEquals("true", this.integrationProperties.get(IntegrationProperties.THROW_EXCEPTION_ON_LATE_REPLY)); assertEquals("20", this.integrationProperties.get(IntegrationProperties.TASK_SCHEDULER_POOL_SIZE)); assertEquals(this.integrationProperties, this.serviceActivator.getIntegrationProperties()); assertEquals(20, TestUtils.getPropertyValue(this.taskScheduler, "poolSize")); assertFalse(this.serviceActivator.isAutoStartup()); assertFalse(this.serviceActivator.isRunning()); assertTrue(this.serviceActivatorExplicit.isAutoStartup()); assertTrue(this.serviceActivatorExplicit.isRunning()); }
@Override public boolean isRunning() { return this.gatherEndpoint == null || this.gatherEndpoint.isRunning(); }
public boolean isRunning() { return (this.endpoint != null ? this.endpoint.isRunning() : false); }
@Test public void autoStartupDisabled() { assertFalse(this.endpoint.isRunning()); assertEquals(Boolean.FALSE, new DirectFieldAccessor(endpoint).getPropertyValue("autoStartup")); }
@Test @DirtiesContext public void testRoles() { assertThat(this.roleController.getRoles(), containsInAnyOrder("foo", "bar")); assertFalse(this.roleController.allEndpointsRunning("foo")); assertFalse(this.roleController.noEndpointsRunning("foo")); assertTrue(this.roleController.allEndpointsRunning("bar")); assertFalse(this.roleController.noEndpointsRunning("bar")); Map<String, Boolean> state = this.roleController.getEndpointsRunningStatus("foo"); assertThat(state.get("annotationTestService.handle.serviceActivator"), equalTo(Boolean.FALSE)); assertThat(state.get("enableIntegrationTests.ContextConfiguration2.sendAsyncHandler.serviceActivator"), equalTo(Boolean.TRUE)); this.roleController.startLifecyclesInRole("foo"); assertTrue(this.roleController.allEndpointsRunning("foo")); this.roleController.stopLifecyclesInRole("foo"); assertFalse(this.roleController.allEndpointsRunning("foo")); assertTrue(this.roleController.noEndpointsRunning("foo")); @SuppressWarnings("unchecked") MultiValueMap<String, SmartLifecycle> lifecycles = TestUtils.getPropertyValue(this.roleController, "lifecycles", MultiValueMap.class); assertEquals(2, lifecycles.size()); assertEquals(2, lifecycles.get("foo").size()); assertEquals(1, lifecycles.get("bar").size()); assertFalse(this.serviceActivatorEndpoint.isRunning()); assertFalse(this.sendAsyncHandler.isRunning()); assertEquals(2, lifecycles.size()); assertEquals(2, lifecycles.get("foo").size()); }
this.subscriberIds.add(clientId); synchronized (this.consumerEndpoint) { if (!this.consumerEndpoint.isRunning()) { this.consumerEndpoint.start(); this.subscriberIds.remove(clientId); synchronized (this.consumerEndpoint) { if (this.subscriberIds.isEmpty() && this.consumerEndpoint.isRunning()) { this.consumerEndpoint.stop();