From cded733c9b8d7fffd54aac74d4778c10db6246c4 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 29 Jul 2022 17:24:46 +0200 Subject: [PATCH] [matlab] Migrate tests to Junit5 --- pmd-matlab/pom.xml | 4 ++-- .../sourceforge/pmd/cpd/MatlabTokenizerTest.java | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pmd-matlab/pom.xml b/pmd-matlab/pom.xml index ab060a351a..de32016435 100644 --- a/pmd-matlab/pom.xml +++ b/pmd-matlab/pom.xml @@ -74,8 +74,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/pmd-matlab/src/test/java/net/sourceforge/pmd/cpd/MatlabTokenizerTest.java b/pmd-matlab/src/test/java/net/sourceforge/pmd/cpd/MatlabTokenizerTest.java index 91328c8d9b..48d3f50117 100644 --- a/pmd-matlab/src/test/java/net/sourceforge/pmd/cpd/MatlabTokenizerTest.java +++ b/pmd-matlab/src/test/java/net/sourceforge/pmd/cpd/MatlabTokenizerTest.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 MatlabTokenizerTest extends CpdTextComparisonTest { +class MatlabTokenizerTest extends CpdTextComparisonTest { - public MatlabTokenizerTest() { + MatlabTokenizerTest() { super(".m"); } @@ -27,28 +27,28 @@ public class MatlabTokenizerTest extends CpdTextComparisonTest { } @Test - public void testLongSample() { + void testLongSample() { doTest("sample-matlab"); } @Test - public void testIgnoreBetweenSpecialComments() { + void testIgnoreBetweenSpecialComments() { doTest("specialComments"); } @Test - public void testComments() { + void testComments() { doTest("comments"); } @Test - public void testBlockComments() { + void testBlockComments() { doTest("multilineComments"); } @Test - public void testQuestionMark() { + void testQuestionMark() { doTest("questionMark"); }