use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class SharedServiceConfigurationCheckerTest 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 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.management.BootstrapProperties 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.management.BootstrapProperties in project interlok by adaptris.
the class ConfigPreProcessorImplTest method testProperties.
@Test
public void testProperties() {
BootstrapProperties props = new JunitBootstrapProperties(new Properties());
DummyConfigurationPreProcessor p = new DummyConfigurationPreProcessor(props);
p.setProperties(new Properties());
assertNotNull(p.getProperties());
}
use of com.adaptris.core.management.BootstrapProperties in project interlok by adaptris.
the class ConfigPreProcessorImplTest method testConfiguration.
@Test
@SuppressWarnings("deprecation")
public void testConfiguration() {
BootstrapProperties props = new JunitBootstrapProperties(new Properties());
DummyConfigurationPreProcessor p = new DummyConfigurationPreProcessor(props);
assertNotSame(props, p.getBootstrapProperties());
assertNotNull(p.getConfiguration());
assertEquals(0, p.getConfiguration().size());
}
Aggregations