Skip to content

Commit d4cb922

Browse files
committed
LiveTest -> Test
1 parent 14bee15 commit d4cb922

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spring-security-cache-control/src/test/java/com/baeldung/cachecontrol/ResourceEndpointLiveTest.java renamed to spring-security-cache-control/src/test/java/com/baeldung/cachecontrol/ResourceEndpointTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
@RunWith(SpringRunner.class)
1313
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = AppRunner.class)
14-
public class ResourceEndpointLiveTest {
14+
public class ResourceEndpointTest {
1515

1616
@LocalServerPort
1717
private int serverPort;
@@ -66,7 +66,7 @@ public void givenServiceEndpoint_whenGetRequestForPrivateUser_shouldResponseWith
6666
}
6767

6868
private String getBaseUrl() {
69-
return "http://localhost:" + serverPort;
69+
return String.format("http://localhost:%d", serverPort);
7070
}
7171

7272
}

0 commit comments

Comments
 (0)