1 package de.spring.webservices.services;
3 import org.junit.Assert;
4 import org.junit.Before;
7 import de.spring.webservices.operations.Operations;
8 import de.spring.webservices.server.auto.CustomBindingExampleRequest;
9 import de.spring.webservices.server.auto.CustomBindingExampleResponse;
10 import de.spring.webservices.services.impl.CustomBindingExampleServiceImpl;
13 public class CustomBindingExampleServiceTest {
15 private Operations.RequestResponse
16 <CustomBindingExampleResponse, CustomBindingExampleRequest> customBindingExampleService;
20 customBindingExampleService = new CustomBindingExampleServiceImpl();
24 public void givenCustomBindingExampleRequestThenReturnCustomBindingExampleResponse() {
25 CustomBindingExampleRequest request = new CustomBindingExampleRequest();
26 request.setData("SCARLETT");
27 CustomBindingExampleResponse expected = new CustomBindingExampleResponse();
28 expected.setData("CUSTOM BINDING SNAKE EYES AND " + request.getData());
30 CustomBindingExampleResponse actual = customBindingExampleService.requestResponse(request);
32 Assert.assertEquals(expected.getData(), actual.getData());