From 94545b6049c17d701ba41131c4590e5bc3c1477b Mon Sep 17 00:00:00 2001 From: "Travis CI (pmd-bot)" Date: Sat, 13 Apr 2019 17:43:22 +0000 Subject: [PATCH] Update documentation TRAVIS_JOB_NUMBER=3650.1 TRAVIS_COMMIT_RANGE=0dd0ce1b065e...d6f24afa30d0 --- docs/pages/pmd/rules/java/bestpractices.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/pmd/rules/java/bestpractices.md b/docs/pages/pmd/rules/java/bestpractices.md index 68feb9d383..4023ea302e 100644 --- a/docs/pages/pmd/rules/java/bestpractices.md +++ b/docs/pages/pmd/rules/java/bestpractices.md @@ -806,7 +806,7 @@ This rule checks for JUnit4, JUnit5 and TestNG Tests, as well as methods startin **This rule is defined by the following XPath expression:** ``` xpath -//MethodDeclarator[@Image[fn:matches(.,'^test')] or ../../Annotation/MarkerAnnotation/Name[ +//MethodDeclarator[@Image[matches(.,'^test')] or ../../Annotation/MarkerAnnotation/Name[ pmd-java:typeIs('org.junit.Test') or pmd-java:typeIs('org.junit.jupiter.api.Test') or pmd-java:typeIs('org.junit.jupiter.api.RepeatedTest') @@ -815,7 +815,7 @@ This rule checks for JUnit4, JUnit5 and TestNG Tests, as well as methods startin or pmd-java:typeIs('org.junit.jupiter.params.ParameterizedTest') or pmd-java:typeIs('org.testng.annotations.Test') ]] - [count(..//PrimaryPrefix/Name[@Image[fn:matches(.,'^assert')]]) > $maximumAsserts] + [count(..//PrimaryPrefix/Name[@Image[matches(.,'^assert')]]) > $maximumAsserts] ``` **Example(s):**