From cc90bf909294467bd44c9870e9c050381e2655f2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 15 Nov 2020 23:35:59 +0300 Subject: Run tests with JUnit 5 --- src/test/java/com/juick/UserTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/test/java/com/juick/UserTest.java') 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); } } -- cgit v1.2.3