From f79d2389b0be7b40a74e534c89a5e51c87f1c199 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 7 Jul 2022 17:23:37 +0200 Subject: [PATCH] [groovy] Migrate tests to Junit5 --- pmd-groovy/pom.xml | 4 ++-- .../java/net/sourceforge/pmd/cpd/GroovyTokenizerTest.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pmd-groovy/pom.xml b/pmd-groovy/pom.xml index f50f8a4ff9..1a5e3fbef9 100644 --- a/pmd-groovy/pom.xml +++ b/pmd-groovy/pom.xml @@ -36,8 +36,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/pmd-groovy/src/test/java/net/sourceforge/pmd/cpd/GroovyTokenizerTest.java b/pmd-groovy/src/test/java/net/sourceforge/pmd/cpd/GroovyTokenizerTest.java index ba6e2d1d65..a11b546a87 100644 --- a/pmd-groovy/src/test/java/net/sourceforge/pmd/cpd/GroovyTokenizerTest.java +++ b/pmd-groovy/src/test/java/net/sourceforge/pmd/cpd/GroovyTokenizerTest.java @@ -6,13 +6,13 @@ package net.sourceforge.pmd.cpd; import java.util.Properties; -import org.junit.Test; +import org.junit.jupiter.api.Test; import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest; -public class GroovyTokenizerTest extends CpdTextComparisonTest { +class GroovyTokenizerTest extends CpdTextComparisonTest { - public GroovyTokenizerTest() { + GroovyTokenizerTest() { super(".groovy"); } @@ -27,7 +27,7 @@ public class GroovyTokenizerTest extends CpdTextComparisonTest { } @Test - public void testSample() { + void testSample() { doTest("sample"); } }