From 697cef106e13fda79bd7de682054e6189b24b2d2 Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Sat, 5 Aug 2017 12:56:13 +0200 Subject: [PATCH] Explicit @TestInstance(PER_CLASS) See https://github.com/junit-team/junit5/issues/905 I will configure PER_CLASS by default when available --- src/test/kotlin/functional/IntegrationTests.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/kotlin/functional/IntegrationTests.kt b/src/test/kotlin/functional/IntegrationTests.kt index 6cd9ca7..d9b5817 100644 --- a/src/test/kotlin/functional/IntegrationTests.kt +++ b/src/test/kotlin/functional/IntegrationTests.kt @@ -4,6 +4,7 @@ import org.junit.jupiter.api.AfterAll import org.junit.jupiter.api.BeforeAll import org.junit.jupiter.api.Test import org.junit.jupiter.api.TestInstance +import org.junit.jupiter.api.TestInstance.Lifecycle.* import org.springframework.http.MediaType.* import org.springframework.web.reactive.function.client.WebClient import org.springframework.web.reactive.function.client.bodyToFlux @@ -11,6 +12,7 @@ import org.springframework.web.reactive.function.client.bodyToMono import reactor.test.test import java.time.LocalDate +@TestInstance(PER_CLASS) class IntegrationTests { val application = Application(8181)