use of org.apache.camel.component.jt400.Jt400Endpoint in project wildfly-camel by wildfly-extras.
the class AS400IntegrationTest method testToString.
@Test
public void testToString() throws Exception {
String endpointUri = "jt400://user:password@host/qsys.lib/library.lib/queue.dtaq?ccsid=500&format=binary&connectionPool=#mockPool";
WildFlyCamelContext camelctx = new WildFlyCamelContext();
camelctx.getNamingContext().bind("mockPool", new AS400ConnectionPool());
camelctx.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
from(endpointUri).to("mock:end");
}
});
Jt400Endpoint endpoint = camelctx.getEndpoint(endpointUri, Jt400Endpoint.class);
Assert.assertEquals("host", endpoint.getSystemName());
}
Aggregations