Validate our own tests work with JUnit5 and the vintage engine
Closes gh-14737 Co-authored-by: Stephane Nicoll <snicoll@pivotal.io>
This commit is contained in:
committed by
Stephane Nicoll
parent
d9f339a1b6
commit
1db1c8b03c
@@ -19,7 +19,7 @@ package sample.session;
|
||||
import java.net.URI;
|
||||
import java.util.Base64;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer;
|
||||
@@ -38,10 +38,10 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Andy Wilkinson
|
||||
* @author Vedran Pavic
|
||||
*/
|
||||
public class SampleSessionApplicationTests {
|
||||
class SampleSessionApplicationTests {
|
||||
|
||||
@Test
|
||||
public void sessionExpiry() throws Exception {
|
||||
void sessionExpiry() throws Exception {
|
||||
ConfigurableApplicationContext context = createContext();
|
||||
String port = context.getEnvironment().getProperty("local.server.port");
|
||||
URI uri = URI.create("http://localhost:" + port + "/");
|
||||
|
||||
Reference in New Issue
Block a user