From ed915262049c9c1e5281fd61b877a87e0412121d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 17 Apr 2021 07:33:34 +0300 Subject: Use @TestMethodOrder --- src/test/java/com/juick/server/tests/ServerTests.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/test') diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index d56dac14..693a9e1b 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -72,8 +72,10 @@ import org.bouncycastle.openssl.PEMParser; import org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.MethodOrderer; import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestMethodOrder; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.ArgumentCaptor; import org.mockito.Captor; @@ -162,6 +164,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) @TestPropertySource(properties = { "ios_app_id=12345678.com.juick.ExampleApp" }) @AutoConfigureMockMvc +@TestMethodOrder(MethodOrderer.OrderAnnotation.class) public class ServerTests { @Inject -- cgit v1.2.3