]> source.dussan.org Git - sonarqube.git/commitdiff
TestClassWithoutTestCases supports only JUnit 3.x
authorDavid Gageot <david@gageot.net>
Wed, 2 May 2012 12:57:14 +0000 (14:57 +0200)
committerDavid Gageot <david@gageot.net>
Wed, 2 May 2012 12:58:57 +0000 (14:58 +0200)
plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/pmd.properties
plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/pmd/rules/pmd-unit-tests/TestClassWithoutTestCases.html

index 167b7897d1eed4cace95690d88e4503cd65ca45e..af3beb3b70a77799e9d3e1339b911712a6d77d14 100644 (file)
@@ -279,7 +279,7 @@ rule.pmd-unit-tests.JUnitStaticSuite.name=JUnit static suite
 rule.pmd-unit-tests.JUnitSpelling.name= JUnit spelling
 rule.pmd-unit-tests.JUnitAssertionsShouldIncludeMessage.name=JUnit assertions should include a message
 rule.pmd-unit-tests.JUnitTestsShouldIncludeAssert.name=JUnit tests should include an assert
-rule.pmd-unit-tests.TestClassWithoutTestCases.name=Test class without test cases
+rule.pmd-unit-tests.TestClassWithoutTestCases.name=Test class without test cases (JUnit 3.x only)
 rule.pmd-unit-tests.UnnecessaryBooleanAssertion.name=Unnecessary boolean assertion
 rule.pmd-unit-tests.UseAssertEqualsInsteadOfAssertTrue.name=Use assertEquals instead of assertTrue
 rule.pmd-unit-tests.UseAssertSameInsteadOfAssertTrue.name=Use assertSame instead of assertTrue
index 891dde75b7f2a24c555c425d246e9c2219c58b0b..25a0699331cbee442d82906e6ab3a797aef27772 100644 (file)
@@ -1,4 +1,5 @@
 Test classes end with the suffix Test. Having a non-test class with that name is not a good practice, since most people will assume it is a test case. Test classes have test methods named testXXX.
+Beware: This rule doesn't support JUnit 4.x's @Test annotation.
 <pre>
 public class CarTest { // violation, consider changing the name of the class if it is not a test
   // consider adding test methods if it is a test