aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/UserTest.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-11-15 23:35:59 +0300
committerGravatar Vitaly Takmazov2020-11-15 23:35:59 +0300
commitcc90bf909294467bd44c9870e9c050381e2655f2 (patch)
tree2ba9f8e6c0ee9edc7bb65a4bed1998f269e750c8 /src/test/java/com/juick/UserTest.java
parent8e935eb79b0d5a14dbbdba214a62e3907e7f9c58 (diff)
Run tests with JUnit 5
Diffstat (limited to 'src/test/java/com/juick/UserTest.java')
-rw-r--r--src/test/java/com/juick/UserTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/java/com/juick/UserTest.java b/src/test/java/com/juick/UserTest.java
index 1ae24e6d..9af67467 100644
--- a/src/test/java/com/juick/UserTest.java
+++ b/src/test/java/com/juick/UserTest.java
@@ -20,11 +20,12 @@ package com.juick;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.juick.model.User;
import com.juick.test.util.MockUtils;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import java.io.IOException;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
public class UserTest {
@Test
public void userEqualityTest() throws IOException {
@@ -32,6 +33,7 @@ public class UserTest {
String jsonUser = "{\"uid\" : 1, \"uname\": \"ugnich\"}";
ObjectMapper jsonMapper = new ObjectMapper();
User jsonUgnich = jsonMapper.readValue(jsonUser, User.class);
- Assert.assertEquals(ugnich, jsonUgnich);
+
+ assertEquals(ugnich, jsonUgnich);
}
}