diff options
Diffstat (limited to 'src/test/java/com/juick/UserTest.java')
-rw-r--r-- | src/test/java/com/juick/UserTest.java | 8 |
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); } } |