Skip to content

Commit 994c806

Browse files
committed
Fix unit tests by using different test projects
1 parent d009ae8 commit 994c806

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class ReviewCmdTest {
5252
public void setUp() throws Exception {
5353

5454
// 1. Create a Java project
55-
this.testProject = EclipseUtils.createJavaProject("PMDTestProject");
55+
this.testProject = EclipseUtils.createJavaProject("ReviewCmdTest");
5656
Assert.assertTrue("A test project cannot be created; the tests cannot be performed.",
5757
this.testProject != null && this.testProject.exists() && this.testProject.isAccessible());
5858

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ReviewCodeCmdNonJavaTest {
2424

2525
@Test
2626
public void checkCodeForNonJavaProject() throws Exception {
27-
IProject testProject = EclipseUtils.createProject("TestNonJavaProject");
27+
IProject testProject = EclipseUtils.createProject("ReviewCodeCmdNonJavaTest");
2828
Assert.assertTrue("A test project cannot be created; the tests cannot be performed.",
2929
testProject != null && testProject.exists() && testProject.isAccessible());
3030
Assert.assertFalse(testProject.hasNature(JavaCore.NATURE_ID));

0 commit comments

Comments
 (0)