Skip to content

Commit 6df6bf1

Browse files
committed
Fix unit test for multiple rulesets
1 parent b964498 commit 6df6bf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/runtime/cmd/MultipleRulesetsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ public void testReviewCmdBasic() throws CommandException, CoreException {
121121
IMarker[] markersSecond = this.testProject.getFile("src/main/java/second/Second.java")
122122
.findMarkers(PMDRuntimeConstants.PMD_MARKER_1, false, 1);
123123
Assert.assertEquals(1, markersSecond.length);
124-
assertHasRuleViolation(markersSecond, "UseUtilityClass");
124+
assertHasRuleViolation(markersSecond, "ClassNamingConventions");
125125

126126
IMarker[] markersThird = this.testProject.getFile("src/main/java/third/Third.java")
127127
.findMarkers(PMDRuntimeConstants.PMD_MARKER_1, false, 1);
128128
Assert.assertEquals(1, markersThird.length);
129-
assertHasRuleViolation(markersThird, "ClassNamingConventions");
129+
assertHasRuleViolation(markersThird, "UseUtilityClass");
130130
}
131131

132132
private void assertHasRuleViolation(IMarker[] markers, String rulename) throws CoreException {

0 commit comments

Comments
 (0)