From 8241734c27c1666e43c979fd32b210a95e5848b4 Mon Sep 17 00:00:00 2001 From: Martin Wittlinger Date: Sat, 22 Jan 2022 17:29:37 +0100 Subject: [PATCH] refactor(LiteralTest): The following has changed in the code: Replaced junit 4 test annotation with junit 5 test annotation in testCharLiteralInNoClasspath Replaced junit 4 test annotation with junit 5 test annotation in testLiteralInForEachWithNoClasspath Replaced junit 4 test annotation with junit 5 test annotation in testBuildLiternal Replaced junit 4 test annotation with junit 5 test annotation in testFactoryLiternal Replaced junit 4 test annotation with junit 5 test annotation in testEscapedString Replaced junit 4 test annotation with junit 5 test annotation in testLiteralBase Replaced junit 4 test annotation with junit 5 test annotation in testLiteralBasePrinter Transformed junit4 assert to junit 5 assertion in testCharLiteralInNoClasspath Transformed junit4 assert to junit 5 assertion in testBuildLiternal Transformed junit4 assert to junit 5 assertion in testFactoryLiternal Transformed junit4 assert to junit 5 assertion in testEscapedString Transformed junit4 assert to junit 5 assertion in testLiteralBase Transformed junit4 assert to junit 5 assertion in testLiteralBasePrinter --- .../java/spoon/test/literal/LiteralTest.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/test/java/spoon/test/literal/LiteralTest.java b/src/test/java/spoon/test/literal/LiteralTest.java index 159bb263f33..8bdedcf5bf2 100644 --- a/src/test/java/spoon/test/literal/LiteralTest.java +++ b/src/test/java/spoon/test/literal/LiteralTest.java @@ -16,27 +16,27 @@ */ package spoon.test.literal; -import org.junit.Test; -import spoon.Launcher; -import spoon.reflect.code.CtLiteral; -import spoon.reflect.code.LiteralBase; -import spoon.reflect.declaration.CtClass; -import spoon.reflect.declaration.CtType; -import spoon.reflect.factory.CodeFactory; import spoon.reflect.factory.Factory; -import spoon.reflect.factory.TypeFactory; import spoon.reflect.visitor.filter.TypeFilter; import spoon.support.comparator.DeepRepresentationComparator; +import spoon.reflect.declaration.CtType; +import spoon.reflect.code.CtLiteral; +import spoon.reflect.factory.CodeFactory; import spoon.test.literal.testclasses.Tacos; +import spoon.Launcher; +import spoon.reflect.code.LiteralBase; +import spoon.reflect.factory.TypeFactory; +import spoon.reflect.declaration.CtClass; +import org.junit.jupiter.api.Test; import java.util.TreeSet; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; import static spoon.testing.utils.ModelUtils.buildClass; import static spoon.testing.utils.ModelUtils.canBeBuilt; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; public class LiteralTest {