From 4da2eec6056b8eb790579634f60f5dbf8dad556b Mon Sep 17 00:00:00 2001 From: Martin Wittlinger Date: Thu, 6 Jan 2022 19:15:00 +0100 Subject: [PATCH] test: migrate AnnotationLoopTest to junit 5 The following has changed in the code: Replaced junit 4 test annotation with junit 5 test annotation in testAnnotationDeclaredInForInit Transformed junit4 assert to junit 5 assertion in testAnnotationDeclaredInForInit --- src/test/java/spoon/test/annotation/AnnotationLoopTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/spoon/test/annotation/AnnotationLoopTest.java b/src/test/java/spoon/test/annotation/AnnotationLoopTest.java index ad6f60a55ce..77136ed81d3 100644 --- a/src/test/java/spoon/test/annotation/AnnotationLoopTest.java +++ b/src/test/java/spoon/test/annotation/AnnotationLoopTest.java @@ -16,7 +16,7 @@ */ package spoon.test.annotation; -import org.junit.Test; +import org.junit.jupiter.api.Test; import spoon.reflect.code.CtFor; import spoon.reflect.code.CtLocalVariable; import spoon.reflect.declaration.CtType; @@ -24,8 +24,8 @@ import spoon.test.annotation.testclasses.Pozole; import spoon.testing.utils.ModelUtils; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertSame; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertSame; public class AnnotationLoopTest {