Examples of UdpGatewayListener


Examples of org.jboss.soa.esb.listeners.gateway.mina.UdpGatewayListener

   
    @Test (expected = ConfigurationException.class)
    public void nullHost() throws ConfigurationException, ManagedLifecycleException
    {
        final ConfigTree config = createConfig(null, PORT, handlerName, SERVICE_CATEGORY, SERVICE_NAME);
        new UdpGatewayListener(config).initialise();
    }
View Full Code Here

Examples of org.jboss.soa.esb.listeners.gateway.mina.UdpGatewayListener

   
    @Test (expected = ConfigurationException.class)
    public void nullHanlderClass() throws ConfigurationException, ManagedLifecycleException
    {
        final ConfigTree config = createConfig(null, PORT, null, SERVICE_CATEGORY, SERVICE_NAME);
        new UdpGatewayListener(config).initialise();
    }
View Full Code Here

Examples of org.jboss.soa.esb.listeners.gateway.mina.UdpGatewayListener

   
    @Test (expected = ConfigurationException.class)
    public void nullServiceCategory() throws ConfigurationException, ManagedLifecycleException
    {
        final ConfigTree config = createConfig(null, PORT, handlerName, null, SERVICE_NAME);
        new UdpGatewayListener(config).initialise();
    }
View Full Code Here

Examples of org.jboss.soa.esb.listeners.gateway.mina.UdpGatewayListener

   
    @Test (expected = ConfigurationException.class)
    public void nullServiceName() throws ConfigurationException, ManagedLifecycleException
    {
        final ConfigTree config = createConfig(null, PORT, handlerName, SERVICE_CATEGORY, null);
        new UdpGatewayListener(config).initialise();
    }
View Full Code Here

Examples of org.jboss.soa.esb.listeners.gateway.mina.UdpGatewayListener

    @Test
    public void async() throws ConfigurationException, ManagedLifecycleException, InterruptedException, URISyntaxException, UnknownHostException, IOException
    {
        final ConfigTree config = createConfig(HOST, PORT, handlerName, SERVICE_CATEGORY, SERVICE_NAME);
        UdpGatewayListener gateway = new UdpGatewayListener(config);
        gateway.initialise();
       
        final String payload = "Some content";
       
        sendUdpString(payload, HOST, PORT);

        Thread.sleep(1000l);
       
        Object object = mockCourier.message.getBody().get();
        assertTrue(object instanceof byte[]);
        byte[] bytes = (byte[]) object;
        assertEquals(payload, new String(bytes));

        gateway.doStop();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.