LiveTest -> Test

This commit is contained in:
pivovarit 2017-02-05 10:20:12 +01:00
parent 14bee159bd
commit d4cb92250d
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import static com.jayway.restassured.RestAssured.given;
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = AppRunner.class)
public class ResourceEndpointLiveTest {
public class ResourceEndpointTest {
@LocalServerPort
private int serverPort;
@ -66,7 +66,7 @@ public class ResourceEndpointLiveTest {
}
private String getBaseUrl() {
return "http://localhost:" + serverPort;
return String.format("http://localhost:%d", serverPort);
}
}