From b8565167caa4184d2881329507f576e68f6a168b Mon Sep 17 00:00:00 2001 From: Xavier Le Vourch Date: Wed, 24 Oct 2007 00:11:56 +0000 Subject: [PATCH] FortranTokenizerTest and RubyTokenizerTest were not inserted correctly in test suite incorrect token count in RubyTokenizerTest git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5566 51baf565-9d33-0410-a72c-fc3788e3496d --- .../net/sourceforge/pmd/cpd/FortranTokenizerTest.java | 4 ++++ .../test/net/sourceforge/pmd/cpd/RubyTokenizerTest.java | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pmd/regress/test/net/sourceforge/pmd/cpd/FortranTokenizerTest.java b/pmd/regress/test/net/sourceforge/pmd/cpd/FortranTokenizerTest.java index 9e004ef876..f3e91ab95c 100644 --- a/pmd/regress/test/net/sourceforge/pmd/cpd/FortranTokenizerTest.java +++ b/pmd/regress/test/net/sourceforge/pmd/cpd/FortranTokenizerTest.java @@ -203,4 +203,8 @@ public class FortranTokenizerTest extends AbstractTokenizerTest { this.expectedTokenCount = 434; super.tokenizeTest(); } + + public static junit.framework.Test suite() { + return new junit.framework.JUnit4TestAdapter(FortranTokenizerTest.class); + } } diff --git a/pmd/regress/test/net/sourceforge/pmd/cpd/RubyTokenizerTest.java b/pmd/regress/test/net/sourceforge/pmd/cpd/RubyTokenizerTest.java index 02a4daa485..3c5fd28ca5 100644 --- a/pmd/regress/test/net/sourceforge/pmd/cpd/RubyTokenizerTest.java +++ b/pmd/regress/test/net/sourceforge/pmd/cpd/RubyTokenizerTest.java @@ -14,8 +14,6 @@ import test.net.sourceforge.pmd.testframework.AbstractTokenizerTest; public class RubyTokenizerTest extends AbstractTokenizerTest { - - @Before @Override public void buildTokenizer() { @@ -50,7 +48,11 @@ public class RubyTokenizerTest extends AbstractTokenizerTest { @Test public void tokenizeTest() throws IOException { - this.expectedTokenCount = 29; + this.expectedTokenCount = 30; super.tokenizeTest(); } + + public static junit.framework.Test suite() { + return new junit.framework.JUnit4TestAdapter(RubyTokenizerTest.class); + } }