// Path: spring-ws-timeout-httpclient/src/main/java/com/codenotfound/ws/client/TicketAgentClient.java
// @Component
// public class TicketAgentClient {
// 
//   private static final Logger LOGGER = LoggerFactory.getLogger(TicketAgentClient.class);
// 
//   @Autowired
//   private WebServiceTemplate webServiceTemplate;
// 
//   @SuppressWarnings("unchecked")
//   public List<BigInteger> listFlights() {
//     ObjectFactory factory = new ObjectFactory();
//     TListFlights tListFlights = factory.createTListFlights();
// 
//     JAXBElement<TListFlights> request = factory.createListFlightsRequest(tListFlights);
//     JAXBElement<TFlightsResponse> response = null;
// 
//     try {
//       response = (JAXBElement<TFlightsResponse>) webServiceTemplate.marshalSendAndReceive(request);
//       return response.getValue().getFlightNumber();
//     } catch (Exception e) {
//       LOGGER.error(e.getMessage());
//       // TODO handle the exception
//       return new ArrayList<>();
//     }
//   }
// }


import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigInteger;
import java.util.List;
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.TicketAgentClient;
package com.codenotfound.ws;





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

  @Autowired
// Path: spring-ws-timeout-httpclient/src/main/java/com/codenotfound/ws/client/TicketAgentClient.java
// @Component
// public class TicketAgentClient {
// 
//   private static final Logger LOGGER = LoggerFactory.getLogger(TicketAgentClient.class);
// 
//   @Autowired
//   private WebServiceTemplate webServiceTemplate;
// 
//   @SuppressWarnings("unchecked")
//   public List<BigInteger> listFlights() {
//     ObjectFactory factory = new ObjectFactory();
//     TListFlights tListFlights = factory.createTListFlights();
// 
//     JAXBElement<TListFlights> request = factory.createListFlightsRequest(tListFlights);
//     JAXBElement<TFlightsResponse> response = null;
// 
//     try {
//       response = (JAXBElement<TFlightsResponse>) webServiceTemplate.marshalSendAndReceive(request);
//       return response.getValue().getFlightNumber();
//     } catch (Exception e) {
//       LOGGER.error(e.getMessage());
//       // TODO handle the exception
//       return new ArrayList<>();
//     }
//   }
// }


// Path: spring-ws-timeout-httpclient/src/test/java/com/codenotfound/ws/SpringWsApplicationTests.java
import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigInteger;
import java.util.List;
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.TicketAgentClient;

package com.codenotfound.ws;





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

  @Autowired
  private TicketAgentClient ticketAgentClient;