From 4284583261548c331cdd9a4d2037d3753c08c32f Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 7 Jul 2022 17:22:24 +0200 Subject: [PATCH] [go] Migrate tests to Junit5 --- pmd-go/pom.xml | 4 ++-- .../net/sourceforge/pmd/cpd/GoTokenizerTest.java | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pmd-go/pom.xml b/pmd-go/pom.xml index f4faa32bd4..060920664c 100644 --- a/pmd-go/pom.xml +++ b/pmd-go/pom.xml @@ -60,8 +60,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/pmd-go/src/test/java/net/sourceforge/pmd/cpd/GoTokenizerTest.java b/pmd-go/src/test/java/net/sourceforge/pmd/cpd/GoTokenizerTest.java index 0a21eb2e1b..eada52e8f1 100644 --- a/pmd-go/src/test/java/net/sourceforge/pmd/cpd/GoTokenizerTest.java +++ b/pmd-go/src/test/java/net/sourceforge/pmd/cpd/GoTokenizerTest.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 GoTokenizerTest extends CpdTextComparisonTest { +class GoTokenizerTest extends CpdTextComparisonTest { - public GoTokenizerTest() { + GoTokenizerTest() { super(".go"); } @@ -27,22 +27,22 @@ public class GoTokenizerTest extends CpdTextComparisonTest { } @Test - public void simpleTest() { + void simpleTest() { doTest("hello"); } @Test - public void bigFileTest() { + void bigFileTest() { doTest("btrfs"); } @Test - public void testIssue1751() { + void testIssue1751() { doTest("issue-1751"); } @Test - public void testUnicode() { + void testUnicode() { // https://github.com/pmd/pmd/issues/2752 doTest("sample_unicode"); }