// 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: step9_soap_message_logging_into_custom_elasticsearch_field/src/test/java/de/jonashackt/tutorial/ApplicationTestConfiguration.java
// @Configuration
// @Import(ApplicationConfiguration.class)
// public class ApplicationTestConfiguration {
// 
//     @Bean
//     public WeatherService weatherService() {
//         return new WeatherServiceEndpoint();
//     }
// }


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.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import de.codecentric.namespace.weatherservice.WeatherException;
import de.codecentric.namespace.weatherservice.general.ForecastRequest;
import de.codecentric.namespace.weatherservice.general.ForecastReturn;
import de.jonashackt.tutorial.ApplicationTestConfiguration;
package de.jonashackt.tutorial.endpoint;




@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes=ApplicationTestConfiguration.class)
public class WeatherServiceTest {

    @Autowired
    private WeatherServiceEndpoint weatherServiceEndpoint;
    
    @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: step9_soap_message_logging_into_custom_elasticsearch_field/src/test/java/de/jonashackt/tutorial/ApplicationTestConfiguration.java
// @Configuration
// @Import(ApplicationConfiguration.class)
// public class ApplicationTestConfiguration {
// 
//     @Bean
//     public WeatherService weatherService() {
//         return new WeatherServiceEndpoint();
//     }
// }


// Path: step9_soap_message_logging_into_custom_elasticsearch_field/src/test/java/de/jonashackt/tutorial/endpoint/WeatherServiceTest.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.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import de.codecentric.namespace.weatherservice.WeatherException;
import de.codecentric.namespace.weatherservice.general.ForecastRequest;
import de.codecentric.namespace.weatherservice.general.ForecastReturn;
import de.jonashackt.tutorial.ApplicationTestConfiguration;

package de.jonashackt.tutorial.endpoint;




@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes=ApplicationTestConfiguration.class)
public class WeatherServiceTest {

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