// Path: step9_soap_message_logging_into_custom_elasticsearch_field/src/test/java/de/jonashackt/tutorial/utils/TestHelper.java
// public static ForecastRequest generateDummyRequest() {
//     ForecastRequest forecastRequest = new ForecastRequest();
//     forecastRequest.setZIP("99425");
//     forecastRequest.setFlagcolor("blackblue");
//     forecastRequest.setProductName(ProductName.FORECAST_BASIC);
//     ForecastCustomer customer = new ForecastCustomer();
//     customer.setAge(67);
//     customer.setContribution(500);
//     customer.setMethodOfPayment("Bitcoin");
//     forecastRequest.setForecastCustomer(customer);
//     return forecastRequest;
// }
// 
// Path: step10_simple_app_with_cxf-spring-boot-starter/src/test/java/de/jonashackt/tutorial/SimpleBootCxfSystemTestApplication.java
// @Configuration
// @Import({
//         SimpleBootCxfSystemTestConfiguration.class,
//         SimpleBootCxfApplication.class
// })
// public class SimpleBootCxfSystemTestApplication {
// 
// }


import static de.jonashackt.tutorial.utils.TestHelper.generateDummyRequest;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.boot.test.WebIntegrationTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import de.codecentric.namespace.weatherservice.WeatherException;
import de.codecentric.namespace.weatherservice.WeatherService;
import de.codecentric.namespace.weatherservice.general.ForecastRequest;
import de.codecentric.namespace.weatherservice.general.ForecastReturn;
import de.jonashackt.tutorial.SimpleBootCxfSystemTestApplication;
package de.jonashackt.tutorial.endpoint;




@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes=SimpleBootCxfSystemTestApplication.class)
@WebIntegrationTest("server.port:8090")
public class WeatherServiceSystemTest {

    @Autowired
    private WeatherService weatherServiceSystemTestClient;
    
    @Test
    public void getCityForecastByZIP() throws WeatherException {
        // Given
// Path: step9_soap_message_logging_into_custom_elasticsearch_field/src/test/java/de/jonashackt/tutorial/utils/TestHelper.java
// public static ForecastRequest generateDummyRequest() {
//     ForecastRequest forecastRequest = new ForecastRequest();
//     forecastRequest.setZIP("99425");
//     forecastRequest.setFlagcolor("blackblue");
//     forecastRequest.setProductName(ProductName.FORECAST_BASIC);
//     ForecastCustomer customer = new ForecastCustomer();
//     customer.setAge(67);
//     customer.setContribution(500);
//     customer.setMethodOfPayment("Bitcoin");
//     forecastRequest.setForecastCustomer(customer);
//     return forecastRequest;
// }
// 
// Path: step10_simple_app_with_cxf-spring-boot-starter/src/test/java/de/jonashackt/tutorial/SimpleBootCxfSystemTestApplication.java
// @Configuration
// @Import({
//         SimpleBootCxfSystemTestConfiguration.class,
//         SimpleBootCxfApplication.class
// })
// public class SimpleBootCxfSystemTestApplication {
// 
// }


// Path: step9_soap_message_logging_into_custom_elasticsearch_field/src/test/java/de/jonashackt/tutorial/endpoint/WeatherServiceSystemTest.java
import static de.jonashackt.tutorial.utils.TestHelper.generateDummyRequest;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.boot.test.WebIntegrationTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import de.codecentric.namespace.weatherservice.WeatherException;
import de.codecentric.namespace.weatherservice.WeatherService;
import de.codecentric.namespace.weatherservice.general.ForecastRequest;
import de.codecentric.namespace.weatherservice.general.ForecastReturn;
import de.jonashackt.tutorial.SimpleBootCxfSystemTestApplication;

package de.jonashackt.tutorial.endpoint;




@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes=SimpleBootCxfSystemTestApplication.class)
@WebIntegrationTest("server.port:8090")
public class WeatherServiceSystemTest {

    @Autowired
    private WeatherService weatherServiceSystemTestClient;
    
    @Test
    public void getCityForecastByZIP() throws WeatherException {
        // Given
        ForecastRequest forecastRequest = generateDummyRequest();