diff options
author | Vitaly Takmazov | 2020-11-15 23:35:59 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-11-15 23:35:59 +0300 |
commit | cc90bf909294467bd44c9870e9c050381e2655f2 (patch) | |
tree | 2ba9f8e6c0ee9edc7bb65a4bed1998f269e750c8 /src/test/java/com/juick/UserTest.java | |
parent | 8e935eb79b0d5a14dbbdba214a62e3907e7f9c58 (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.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); } } |