use of nl.nn.adapterframework.extensions.test.IbisTester in project iaf by ibissource.
the class ShowConfigurationStatusTest method initTest.
@BeforeClass
public static void initTest() throws ConfigurationException, TransformerConfigurationException, IOException {
URL adaptersUrl = ClassUtils.getResourceURL(ShowConfigurationStatusTest.class, adapters_xslt);
if (adaptersUrl == null) {
throw new ConfigurationException("cannot find resource [" + adapters_xslt + "]");
}
adaptersTransformer = XmlUtils.createTransformer(adaptersUrl, true);
ibisTester = new IbisTester();
System.setProperty("HelloWorld.job.active", "false");
System.setProperty("junit.active", "true");
System.setProperty("configurations.names", "${instance.name},NotExistingConfig");
ibisTester.initTest();
if (ibisTester.testStartAdapters()) {
ibisContext = ibisTester.getIbisContext();
}
assertEquals(true, ibisContext != null);
}
Aggregations