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