From 394c0cbf3bd7f9e9443017168467e7d0ce68da9c Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 29 Jul 2022 17:23:17 +0200 Subject: [PATCH] [lua] Migrate tests to Junit5 --- pmd-lua/pom.xml | 4 ++-- .../net/sourceforge/pmd/cpd/LuaTokenizerTest.java | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pmd-lua/pom.xml b/pmd-lua/pom.xml index 5ebff1a217..3cf75e198d 100644 --- a/pmd-lua/pom.xml +++ b/pmd-lua/pom.xml @@ -62,8 +62,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/pmd-lua/src/test/java/net/sourceforge/pmd/cpd/LuaTokenizerTest.java b/pmd-lua/src/test/java/net/sourceforge/pmd/cpd/LuaTokenizerTest.java index 76d18a3ffa..9c9627454b 100644 --- a/pmd-lua/src/test/java/net/sourceforge/pmd/cpd/LuaTokenizerTest.java +++ b/pmd-lua/src/test/java/net/sourceforge/pmd/cpd/LuaTokenizerTest.java @@ -6,12 +6,12 @@ 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 LuaTokenizerTest extends CpdTextComparisonTest { - public LuaTokenizerTest() { +class LuaTokenizerTest extends CpdTextComparisonTest { + LuaTokenizerTest() { super(".lua"); } @@ -26,17 +26,17 @@ public class LuaTokenizerTest extends CpdTextComparisonTest { } @Test - public void testSimple() { + void testSimple() { doTest("helloworld"); } @Test - public void testFactorial() { + void testFactorial() { doTest("factorial"); } @Test - public void testTabWidth() { + void testTabWidth() { doTest("tabWidth"); } }