Skip to content

Commit

Permalink
#1130 - fixed description
Browse files Browse the repository at this point in the history
  • Loading branch information
Graur committed Aug 22, 2022
1 parent 3f69fe7 commit d03fa3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions qulice-pmd/src/main/resources/com/qulice/pmd/ruleset.xml
Expand Up @@ -219,11 +219,14 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
</properties>
</rule>
<rule name="JUnit5TestShouldBePackagePrivate" language="java" class="net.sourceforge.pmd.lang.rule.XPathRule" message="JUnit 5 tests should be package-private">
<description>
<description><![CDATA[
Reports JUnit 5 test classes and methods that are not package-private.
Contrary to JUnit 4 tests, which required public visibility to be run by the engine,
JUnit 5 tests can also be run if they’re package-private.
Marking them as such is a good practice to limit their visibility.
JUnit 5 tests can also be run if they're package-private. Marking them as such
is a good practice to limit their visibility.
Test methods are identified as those which use `@Test`, `@RepeatedTest`,
`@TestFactory`, `@TestTemplate` or `@ParameterizedTest`.
]]>
</description>
<priority>3</priority>
<properties>
Expand Down
Expand Up @@ -616,7 +616,7 @@ public void allowsDuplicateLiteralsInAnnotations() throws Exception {

/**
* PmdValidator can allow only package private methods,
* annotated @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest.
* annotated by @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest.
* @throws Exception If something wrong happens inside.
*/
@Test
Expand Down

0 comments on commit d03fa3d

Please sign in to comment.