use of com.adaptris.core.SharedService in project interlok by adaptris.
the class SharedServiceConfigurationCheckerTest method testServiceExist.
@Test
public void testServiceExist() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(new NullService("SharedNullService"), new SharedService("SharedNullService")));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertTrue(report.isCheckPassed());
assertNotNull(report.toString());
}
use of com.adaptris.core.SharedService in project interlok by adaptris.
the class SharedServiceConfigurationCheckerTest method testServiceInServiceCollectionExist.
@Test
public void testServiceInServiceCollectionExist() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(new NullService("SharedNullService"), new ServiceList(new SharedService("SharedNullService"))));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertTrue(report.isCheckPassed());
assertNotNull(report.toString());
}
use of com.adaptris.core.SharedService in project interlok by adaptris.
the class SharedServiceConfigurationCheckerTest method testServiceNoShared.
@Test
public void testServiceNoShared() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(null, new SharedService("DoesNotExist")));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertFalse(report.isCheckPassed());
assertTrue(report.getFailureExceptions().size() > 0);
}
use of com.adaptris.core.SharedService in project interlok by adaptris.
the class SharedServiceConfigurationCheckerTest method testServiceCollectionExist.
@Test
public void testServiceCollectionExist() throws Exception {
ServiceList sharedComponent = new ServiceList();
sharedComponent.setUniqueId("SharedNullService");
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(sharedComponent, new SharedService("SharedNullService")));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertTrue(report.isCheckPassed());
assertNotNull(report.toString());
}
use of com.adaptris.core.SharedService in project interlok by adaptris.
the class SharedServiceConfigurationCheckerTest method testServiceConnectionDoesNotExist.
@Test
public void testServiceConnectionDoesNotExist() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(new NullService("SharedNullConnection"), new SharedService("DoesNotExist")));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertFalse(report.isCheckPassed());
assertTrue(report.getFailureExceptions().size() > 0);
assertNotNull(report.toString());
}
Aggregations