Search in sources :

Example 1 with InboundEndpointFactory

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);
    }
}
Also used : InboundEndpointFactory(org.apache.synapse.config.xml.inbound.InboundEndpointFactory) SynapseException(org.apache.synapse.SynapseException)

Aggregations

SynapseException (org.apache.synapse.SynapseException)1 InboundEndpointFactory (org.apache.synapse.config.xml.inbound.InboundEndpointFactory)1