Package org.apache.camel.hello_world_soap_http

Examples of org.apache.camel.hello_world_soap_http.Greeter.greetMe()


   
    @Test
    public void testInvokeService() throws Exception {
        Client client = new Client(getRouterAddress());
        Greeter greeter = client.getClient();
        assertEquals("Get a wrong response", "Hello Security", greeter.greetMe("Security"));
    }
  
}
View Full Code Here


                BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                "http://localhost:" + CXFTestSupport.getPort2()
                + "/WSSecurityRouteTest/GreeterSignaturePort"
        );
       
        assertEquals("Get a wrong response", "Hello Security", greeter.greetMe("Security"));
    }
   
    @Test
    public void testUsernameToken() throws Exception {
        SpringBusFactory bf = new SpringBusFactory();
View Full Code Here

                BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                "http://localhost:" + CXFTestSupport.getPort2()
                + "/WSSecurityRouteTest/GreeterUsernameTokenPort"
        );
       
        assertEquals("Get a wrong response", "Hello Security", greeter.greetMe("Security"));
    }
   
    @Test
    public void testEncryption() throws Exception {
        SpringBusFactory bf = new SpringBusFactory();
View Full Code Here

                BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                "http://localhost:" + CXFTestSupport.getPort2()
                + "/WSSecurityRouteTest/GreeterEncryptionPort"
        );
       
        assertEquals("Get a wrong response", "Hello Security", greeter.greetMe("Security"));
    }
  
    @Test
    public void testSecurityPolicy() throws Exception {
        SpringBusFactory bf = new SpringBusFactory();
View Full Code Here

                BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                "http://localhost:" + CXFTestSupport.getPort2()
                + "/WSSecurityRouteTest/GreeterSecurityPolicyPort"
        );
       
        assertEquals("Get a wrong response", "Hello Security", greeter.greetMe("Security"));
    }
}
View Full Code Here

                BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                "http://localhost:" + CXFTestSupport.getPort2()
                + "/WSSecurityRouteTest/GreeterSignaturePort"
        );
       
        assertEquals("Get a wrong response", "Hello Security", greeter.greetMe("Security"));
    }
   
    @Test
    public void testUsernameToken() throws Exception {
        SpringBusFactory bf = new SpringBusFactory();
View Full Code Here

                BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                "http://localhost:" + CXFTestSupport.getPort2()
                + "/WSSecurityRouteTest/GreeterUsernameTokenPort"
        );
       
        assertEquals("Get a wrong response", "Hello Security", greeter.greetMe("Security"));
    }
   
    @Test
    public void testEncryption() throws Exception {
        SpringBusFactory bf = new SpringBusFactory();
View Full Code Here

                BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                "http://localhost:" + CXFTestSupport.getPort2()
                + "/WSSecurityRouteTest/GreeterEncryptionPort"
        );
       
        assertEquals("Get a wrong response", "Hello Security", greeter.greetMe("Security"));
    }
  
    @Test
    public void testSecurityPolicy() throws Exception {
        SpringBusFactory bf = new SpringBusFactory();
View Full Code Here

                BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                "http://localhost:" + CXFTestSupport.getPort2()
                + "/WSSecurityRouteTest/GreeterSecurityPolicyPort"
        );
       
        assertEquals("Get a wrong response", "Hello Security", greeter.greetMe("Security"));
    }
}
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.