use of nl.nn.adapterframework.core.PipeLine in project iaf by ibissource.
the class WsdlTest method noroottag.
@Test
public void noroottag() throws XMLStreamException, IOException, SAXException, ParserConfigurationException, URISyntaxException, ConfigurationException, NamingException {
PipeLine simple = mockPipeLine(getXmlValidatorInstance(null, "WsdlTest/test.xsd", "urn:webservice1 WsdlTest/test.xsd"), getXmlValidatorInstance("b", "WsdlTest/test.xsd", "urn:webservice1 WsdlTest/test.xsd"), "urn:webservice1", "TestRootTag");
WsdlGenerator wsdl = new WsdlGenerator(simple);
wsdl.init();
test(wsdl, "WsdlTest/noroottag.test.wsdl");
}
use of nl.nn.adapterframework.core.PipeLine in project iaf by ibissource.
the class WsdlTest method basic.
@Test
public void basic() throws XMLStreamException, IOException, ParserConfigurationException, SAXException, ConfigurationException, URISyntaxException, NamingException {
PipeLine simple = mockPipeLine(getXmlValidatorInstance("a", "WsdlTest/test.xsd", "urn:webservice1 WsdlTest/test.xsd"), getXmlValidatorInstance("b", "WsdlTest/test.xsd", "urn:webservice1 WsdlTest/test.xsd"), "urn:webservice1", "Test1");
WsdlGenerator wsdl = new WsdlGenerator(simple);
wsdl.init();
test(wsdl, "WsdlTest/webservice1.test.wsdl");
}
use of nl.nn.adapterframework.core.PipeLine in project iaf by ibissource.
the class WsdlTest method includeXsdInWsdlMixed.
@Test
public void includeXsdInWsdlMixed() throws XMLStreamException, IOException, ParserConfigurationException, SAXException, ConfigurationException, URISyntaxException, NamingException {
XmlValidator inputValidator = getXmlValidatorInstance("a", "b", "WsdlTest/test.xsd", "urn:webservice1 WsdlTest/test.xsd");
IValidator outputValidator = inputValidator.getResponseValidator();
PipeLine simple = mockPipeLine(inputValidator, outputValidator, "urn:webservice1", "IncludeXsds");
WsdlGenerator wsdl = new WsdlGenerator(simple);
wsdl.setUseIncludes(true);
wsdl.init();
test(wsdl, "WsdlTest/includexsds.test.wsdl");
}
use of nl.nn.adapterframework.core.PipeLine in project iaf by ibissource.
the class ReceiverTest method setupAdapter.
public Adapter setupAdapter(Receiver<String> receiver) throws Exception {
Adapter adapter = configuration.createBean(Adapter.class);
adapter.setName("ReceiverTestAdapterName");
PipeLine pl = new PipeLine();
pl.setFirstPipe("dummy");
EchoPipe pipe = new EchoPipe();
pipe.setName("dummy");
pl.addPipe(pipe);
PipeLineExit ple = new PipeLineExit();
ple.setPath("success");
ple.setState(ExitState.SUCCESS);
pl.registerPipeLineExit(ple);
adapter.setPipeLine(pl);
adapter.registerReceiver(receiver);
configuration.registerAdapter(adapter);
return adapter;
}
use of nl.nn.adapterframework.core.PipeLine in project iaf by ibissource.
the class CleanupDatabaseJobTest method setupAdapter.
private Adapter setupAdapter() throws ConfigurationException {
Adapter adapter = configuration.createBean(Adapter.class);
adapter.setName("fakeAdapter");
PipeLine pipeline = configuration.createBean(PipeLine.class);
storage = configuration.createBean(JdbcTransactionalStorage.class);
storage.setName("test-cleanupDB");
storage.setType("A");
storage.setSlotId("dummySlotId");
storage.setTableName(tableName);
storage.setSequenceName("SEQ_" + tableName);
storage.setDatasourceName(getDataSourceName());
MessageSendingPipe pipe = new MessageSendingPipe();
pipe.setName("dummyPipe");
pipe.setMessageLog(storage);
pipeline.addPipe(pipe);
adapter.setPipeLine(pipeline);
return adapter;
}
Aggregations