From b493548297d5faba1c381c93f14c6bbf43549131 Mon Sep 17 00:00:00 2001 From: Martin Wittlinger Date: Thu, 13 Jan 2022 14:59:36 +0100 Subject: [PATCH] refactor(EvalTest): The following has changed in the code: Replaced junit 4 test annotation with junit 5 test annotation in testStringConcatenation Replaced junit 4 test annotation with junit 5 test annotation in testArrayLength Replaced junit 4 test annotation with junit 5 test annotation in testDoNotSimplify Replaced junit 4 test annotation with junit 5 test annotation in testDoNotSimplifyCasts Replaced junit 4 test annotation with junit 5 test annotation in testScanAPartiallyEvaluatedElement Replaced junit 4 test annotation with junit 5 test annotation in testTryCatchAndStatement Replaced junit 4 test annotation with junit 5 test annotation in testDoNotSimplifyToExpressionWhenStatementIsExpected Replaced junit 4 test annotation with junit 5 test annotation in testIsKnownAtCompileTime Replaced junit 4 test annotation with junit 5 test annotation in testVisitorPartialEvaluator_binary Replaced junit 4 test annotation with junit 5 test annotation in testVisitorPartialEvaluator_unary Replaced junit 4 test annotation with junit 5 test annotation in testVisitorPartialEvaluator_if Replaced junit 4 test annotation with junit 5 test annotation in testVisitorPartialEvaluatorScanner Replaced junit 4 test annotation with junit 5 test annotation in testconvertElementToRuntimeObject Transformed junit4 assert to junit 5 assertion in testStringConcatenation Transformed junit4 assert to junit 5 assertion in testArrayLength Transformed junit4 assert to junit 5 assertion in testDoNotSimplify Transformed junit4 assert to junit 5 assertion in testDoNotSimplifyCasts Transformed junit4 assert to junit 5 assertion in testScanAPartiallyEvaluatedElement Transformed junit4 assert to junit 5 assertion in testTryCatchAndStatement Transformed junit4 assert to junit 5 assertion in testDoNotSimplifyToExpressionWhenStatementIsExpected Transformed junit4 assert to junit 5 assertion in testIsKnownAtCompileTime Transformed junit4 assert to junit 5 assertion in testVisitorPartialEvaluator_binary Transformed junit4 assert to junit 5 assertion in testVisitorPartialEvaluator_unary Transformed junit4 assert to junit 5 assertion in testVisitorPartialEvaluator_if Transformed junit4 assert to junit 5 assertion in testVisitorPartialEvaluatorScanner Transformed junit4 assert to junit 5 assertion in testconvertElementToRuntimeObject --- src/test/java/spoon/test/eval/EvalTest.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/test/java/spoon/test/eval/EvalTest.java b/src/test/java/spoon/test/eval/EvalTest.java index fc4fac8836c..8a565bde28f 100644 --- a/src/test/java/spoon/test/eval/EvalTest.java +++ b/src/test/java/spoon/test/eval/EvalTest.java @@ -16,7 +16,11 @@ */ package spoon.test.eval; -import org.junit.Test; + +import java.io.File; +import java.util.List; + +import org.junit.jupiter.api.Test; import spoon.Launcher; import spoon.SpoonException; import spoon.reflect.code.BinaryOperatorKind; @@ -40,13 +44,10 @@ import spoon.support.reflect.eval.VisitorPartialEvaluator; import spoon.test.eval.testclasses.Foo; -import java.io.File; -import java.util.List; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; import static spoon.testing.utils.ModelUtils.build; public class EvalTest {