Prepared code for parallel run
This commit is contained in:
@@ -17,9 +17,9 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:8080", webEnvironment=WebEnvironment.NONE)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:6060", webEnvironment=WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
@AutoConfigureWireMock
|
||||
@AutoConfigureWireMock(port = 6060)
|
||||
public class WiremockImportApplicationTests {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -19,12 +19,12 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
import com.github.tomakehurst.wiremock.junit.WireMockClassRule;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:8080", webEnvironment=WebEnvironment.NONE)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:6061", webEnvironment=WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
public class WiremockServerApplicationTests {
|
||||
|
||||
@ClassRule
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(WireMockSpring.options());
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(WireMockSpring.options().port(6061));
|
||||
|
||||
@Autowired
|
||||
private Service service;
|
||||
|
||||
Reference in New Issue
Block a user