Fixed spring-session integration tests (#4650)
This commit is contained in:
committed by
Grzegorz Piwowarek
parent
3b7cb37379
commit
28166a73de
@@ -1,10 +1,11 @@
|
||||
package com.baeldung;
|
||||
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import cucumber.api.CucumberOptions;
|
||||
import cucumber.api.junit.Cucumber;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@RunWith(Cucumber.class)
|
||||
@CucumberOptions(features = "src/test/resources")
|
||||
public class CucumberIntegrationTest {
|
||||
public class CucumberIntegrationTest extends SpringIntegrationTest{
|
||||
}
|
||||
@@ -5,16 +5,17 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
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.http.HttpMethod;
|
||||
import org.springframework.http.client.ClientHttpResponse;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.web.WebAppConfiguration;
|
||||
import org.springframework.web.client.ResponseErrorHandler;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
//@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = SpringDemoApplication.class)
|
||||
@WebAppConfiguration
|
||||
@SpringBootTest(classes = SpringDemoApplication.class, webEnvironment = WebEnvironment.DEFINED_PORT)
|
||||
@ContextConfiguration
|
||||
public class SpringIntegrationTest {
|
||||
static ResponseResults latestResponse = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user