use of com.adaptris.core.management.BootstrapProperties 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());
}
use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class SharedServiceConfigurationCheckerTest method testSharedNotUsed.
@Test
public void testSharedNotUsed() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig(new NullService("SharedNullService"), null));
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertFalse(report.isCheckPassed());
}
use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class DeprecatedConfigurationCheckerTest method testPerformCheck_Valid.
@Test
public void testPerformCheck_Valid() throws Exception {
DeprecatedConfigurationChecker checker = new DeprecatedConfigurationChecker();
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 DeserializationConfigurationCheckerTest method testUnmarshallFailureBadXml.
@Test
public void testUnmarshallFailureBadXml() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties("xxx");
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertFalse(report.isCheckPassed());
}
use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class DeserializationConfigurationCheckerTest method testUnmarshallSuccess.
@Test
public void testUnmarshallSuccess() throws Exception {
BootstrapProperties mockBootProperties = new MockBootProperties(createAdapterConfig());
ConfigurationCheckReport report = checker.performConfigCheck(mockBootProperties);
assertTrue(report.isCheckPassed());
}
Aggregations