From 134b6c1a23f091186585df5a4f9c5d5ca90c6dd2 Mon Sep 17 00:00:00 2001 From: MartinWitt Date: Mon, 24 Jan 2022 09:13:56 +0100 Subject: [PATCH] test: migrate InvocationTest to JUnit 5 (#4558) --- .../test/invocations/InvocationTest.java | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/test/java/spoon/test/invocations/InvocationTest.java b/src/test/java/spoon/test/invocations/InvocationTest.java index 474a608008a..2dd9ad5e54d 100644 --- a/src/test/java/spoon/test/invocations/InvocationTest.java +++ b/src/test/java/spoon/test/invocations/InvocationTest.java @@ -16,35 +16,35 @@ */ package spoon.test.invocations; -import org.junit.Test; -import spoon.Launcher; -import spoon.SpoonAPI; -import spoon.reflect.CtModel; -import spoon.reflect.code.CtInvocation; +import spoon.reflect.visitor.filter.AbstractFilter; import spoon.reflect.code.CtTypeAccess; -import spoon.reflect.declaration.CtClass; -import spoon.reflect.declaration.CtExecutable; -import spoon.reflect.declaration.CtMethod; -import spoon.reflect.declaration.CtType; import spoon.reflect.factory.Factory; -import spoon.reflect.reference.CtExecutableReference; -import spoon.reflect.visitor.filter.AbstractFilter; import spoon.reflect.visitor.filter.TypeFilter; -import spoon.test.invocations.testclasses.Bar; +import spoon.reflect.code.CtInvocation; +import spoon.reflect.reference.CtExecutableReference; +import spoon.SpoonAPI; import spoon.test.invocations.testclasses.Foo; +import spoon.reflect.declaration.CtExecutable; +import spoon.reflect.declaration.CtType; +import spoon.test.invocations.testclasses.Bar; +import spoon.Launcher; +import spoon.reflect.CtModel; +import spoon.reflect.declaration.CtClass; +import spoon.reflect.declaration.CtMethod; +import org.junit.jupiter.api.Test; -import java.util.Collections; import java.util.List; +import java.util.Collections; import java.util.stream.Collectors; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.assertThat; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; import static spoon.testing.utils.ModelUtils.build; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.fail; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; public class InvocationTest {