From e5687d32f167e17423f05482f02038897afd1918 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 17 Apr 2021 07:24:07 +0300 Subject: Assign order to important tests --- src/test/java/com/juick/server/tests/ServerTests.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 30c7a3d6..d56dac14 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -72,6 +72,7 @@ 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.Order; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.ArgumentCaptor; @@ -1748,6 +1749,7 @@ public class ServerTests { } @Test + @Order(3) public void ActivityDeserialization() throws IOException { String followJsonStr = IOUtils.toString(new ClassPathResource("follow.json").getURI(), StandardCharsets.UTF_8); Follow follow = (Follow) jsonMapper.readValue(followJsonStr, Context.class); @@ -1831,6 +1833,7 @@ public class ServerTests { } @Test + @Order(1) public void serviceSignatureAuth() throws Exception { String meUri = "/api/me"; Instant now = Instant.now(); @@ -2042,6 +2045,7 @@ public class ServerTests { } @Test + @Order(2) public void handleIncorrectCertificates() throws Exception { String deleteJsonStr = IOUtils.toString(new ClassPathResource("delete_user.json").getURI(), StandardCharsets.UTF_8); -- cgit v1.2.3