aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-04-17 07:24:07 +0300
committerGravatar Vitaly Takmazov2021-04-17 07:24:07 +0300
commite5687d32f167e17423f05482f02038897afd1918 (patch)
tree80d582065212f11151e1ba56aa06729ad85a61c4 /src
parente6f78f000ac282e2ff624caf81efe378eede1c17 (diff)
Assign order to important tests
Diffstat (limited to 'src')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java4
1 files changed, 4 insertions, 0 deletions
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);