use of org.apache.synapse.config.xml.inbound.InboundEndpointFactory in project wso2-synapse by wso2.
the class InboundEndpointTestCase method testCreateInvalidInboundEP.
public void testCreateInvalidInboundEP() throws Exception {
InboundEndpointFactory factory = new InboundEndpointFactory();
try {
ep = factory.createInboundEndpoint(AXIOMUtil.stringToOM(invalidSampleEP), config);
Assert.fail("Expected exception is not thrown for invalid inbound EP");
} catch (SynapseException e) {
Assert.assertEquals(e.getMessage().contains("Inbound Endpoint name cannot be null"), true);
}
}
Aggregations