use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class SharedConnectionConfigurationCheckerTest method testNoConnections.
@Test
public void testNoConnections() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(null, null, null, null));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertTrue(report.isCheckPassed());
}
use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class SharedConnectionConfigurationCheckerTest method testCompleteFailureBadXml.
@Test
public void testCompleteFailureBadXml() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties("bad-data");
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 SharedConnectionConfigurationCheckerTest method testConsumeConnectionNoShared.
@Test
public void testConsumeConnectionNoShared() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(null, new SharedConnection("DoesNotExist"), null, 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 SharedConnectionConfigurationCheckerTest method testServiceConnectionDoesNotExist.
@Test
public void testServiceConnectionDoesNotExist() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(new NullConnection("SharedNullConnection"), null, null, new SharedConnection("DoesNotExist")));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertFalse(report.isCheckPassed());
assertTrue(report.getFailureExceptions().size() > 0);
assertNotNull(report.toString());
}
use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class SharedServiceConfigurationCheckerTest method testNoService.
@Test
public void testNoService() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(null, null));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertTrue(report.isCheckPassed());
}
Aggregations