Skip to content

Commit 5332d6d

Browse files
committed
Fix ReviewCmdTest
1 parent 77dfb6d commit 5332d6d

File tree

1 file changed

+3
-0
lines changed
  • net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/runtime/cmd

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ public void setUp() throws Exception {
8484
Assert.assertNotNull("Cannot find the test source file", is);
8585
is.close();
8686

87+
// 3. Enable PMD for the test project
88+
IProjectProperties properties = PMDPlugin.getDefault().getPropertiesManager().loadProjectProperties(testProject);
89+
properties.setPmdEnabled(true);
8790
}
8891

8992
/**

0 commit comments

Comments
 (0)