// Path: spring-ws-hello-world/src/main/java/com/codenotfound/ws/client/HelloWorldClient.java
// @Component
// public class HelloWorldClient {
// 
//   private static final Logger LOGGER =
//       LoggerFactory.getLogger(HelloWorldClient.class);
// 
//   @Autowired
//   private WebServiceTemplate webServiceTemplate;
// 
//   public String sayHello(String firstName, String lastName) {
//     ObjectFactory factory = new ObjectFactory();
//     Person person = factory.createPerson();
// 
//     person.setFirstName(firstName);
//     person.setLastName(lastName);
// 
//     LOGGER.info("Client sending person[firstName={},lastName={}]",
//         person.getFirstName(), person.getLastName());
// 
//     Greeting greeting =
//         (Greeting) webServiceTemplate.marshalSendAndReceive(person);
// 
//     LOGGER.info("Client received greeting='{}'",
//         greeting.getGreeting());
//     return greeting.getGreeting();
//   }
// }


import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.test.context.junit4.SpringRunner;
import com.codenotfound.ws.client.HelloWorldClient;
package com.codenotfound;


@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT)
public class SpringWsApplicationTests {

  @Autowired
// Path: spring-ws-hello-world/src/main/java/com/codenotfound/ws/client/HelloWorldClient.java
// @Component
// public class HelloWorldClient {
// 
//   private static final Logger LOGGER =
//       LoggerFactory.getLogger(HelloWorldClient.class);
// 
//   @Autowired
//   private WebServiceTemplate webServiceTemplate;
// 
//   public String sayHello(String firstName, String lastName) {
//     ObjectFactory factory = new ObjectFactory();
//     Person person = factory.createPerson();
// 
//     person.setFirstName(firstName);
//     person.setLastName(lastName);
// 
//     LOGGER.info("Client sending person[firstName={},lastName={}]",
//         person.getFirstName(), person.getLastName());
// 
//     Greeting greeting =
//         (Greeting) webServiceTemplate.marshalSendAndReceive(person);
// 
//     LOGGER.info("Client received greeting='{}'",
//         greeting.getGreeting());
//     return greeting.getGreeting();
//   }
// }


// Path: spring-ws-hello-world/src/test/java/com/codenotfound/SpringWsApplicationTests.java
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.test.context.junit4.SpringRunner;
import com.codenotfound.ws.client.HelloWorldClient;

package com.codenotfound;


@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT)
public class SpringWsApplicationTests {

  @Autowired
  private HelloWorldClient helloWorldClient;