LiveTest -> Test
This commit is contained in:
parent
14bee159bd
commit
d4cb92250d
@ -11,7 +11,7 @@ import static com.jayway.restassured.RestAssured.given;
|
|||||||
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = AppRunner.class)
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = AppRunner.class)
|
||||||
public class ResourceEndpointLiveTest {
|
public class ResourceEndpointTest {
|
||||||
|
|
||||||
@LocalServerPort
|
@LocalServerPort
|
||||||
private int serverPort;
|
private int serverPort;
|
||||||
@ -66,7 +66,7 @@ public class ResourceEndpointLiveTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getBaseUrl() {
|
private String getBaseUrl() {
|
||||||
return "http://localhost:" + serverPort;
|
return String.format("http://localhost:%d", serverPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user