Search in sources :

Example 1 with SaveCustomer

use of com.example.customerservice.SaveCustomer in project camel by apache.

the class SoapCxfClientTest method testRoundTripSaveCustomer.

@Test
public void testRoundTripSaveCustomer() throws Exception {
    Customer testCustomer = new Customer();
    testCustomer.setName("testName");
    SaveCustomer request = new SaveCustomer();
    request.setCustomer(testCustomer);
    customerService.saveCustomer(request);
    Customer customer2 = serverBean.getLastSavedCustomer();
    Assert.assertEquals("testName", customer2.getName());
}
Also used : Customer(com.example.customerservice.Customer) NoSuchCustomer(com.example.customerservice.NoSuchCustomer) SaveCustomer(com.example.customerservice.SaveCustomer) SaveCustomer(com.example.customerservice.SaveCustomer) Test(org.junit.Test)

Aggregations

Customer (com.example.customerservice.Customer)1 NoSuchCustomer (com.example.customerservice.NoSuchCustomer)1 SaveCustomer (com.example.customerservice.SaveCustomer)1 Test (org.junit.Test)1