use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class JavaxValidationCheckerTest method testPerformCheck_Valid.
@Test
public void testPerformCheck_Valid() throws Exception {
JavaxValidationChecker checker = new JavaxValidationChecker();
BootstrapProperties mockBootProperties = new MockBootProperties(toString(createAdapterConfig(true)));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertTrue(report.isCheckPassed());
}
use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class SharedConnectionConfigurationCheckerTest method testSharedNotUsed.
@Test
public void testSharedNotUsed() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(new NullConnection("SharedNullConnection"), null, null, null));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertFalse(report.isCheckPassed());
}
use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class SharedConnectionConfigurationCheckerTest method testProduceConnectionNoShared.
@Test
public void testProduceConnectionNoShared() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(null, null, new SharedConnection("DoesNotExist"), null));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertFalse(report.isCheckPassed());
assertTrue(report.getFailureExceptions().size() > 0);
}
use of com.adaptris.core.management.BootstrapProperties 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.management.BootstrapProperties 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());
}
Aggregations