You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/runtime/cmd/DetectCutAndPasteCmdTest.java
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
importorg.eclipse.core.resources.IFile;
10
10
importorg.eclipse.core.resources.IFolder;
11
11
importorg.eclipse.core.resources.IProject;
12
+
importorg.eclipse.core.resources.IResource;
12
13
importorg.eclipse.core.runtime.CoreException;
13
14
importorg.junit.After;
14
15
importorg.junit.Assert;
@@ -45,19 +46,16 @@ public void setUp() throws Exception {
45
46
is.close();
46
47
}
47
48
48
-
/**
49
-
* @see junit.framework.TestCase#tearDown()
50
-
*/
51
49
@After
52
50
publicvoidtearDown() throwsException {
53
51
if (this.testProject != null) {
54
52
if (this.testProject.exists() && this.testProject.isAccessible()) {
Copy file name to clipboardExpand all lines: net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/runtime/cmd/MultipleRulesetsTest.java
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -87,17 +87,15 @@ public void setUp() throws Exception {
87
87
88
88
@After
89
89
publicvoidtearDown() throwsException {
90
-
try {
91
-
if (this.testProject != null) {
92
-
if (this.testProject.exists() && this.testProject.isAccessible()) {
Copy file name to clipboardExpand all lines: net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/runtime/cmd/RenderReportCmdTest.java
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -48,19 +48,16 @@ public void setUp() throws Exception {
48
48
49
49
}
50
50
51
-
/**
52
-
* @see junit.framework.TestCase#tearDown()
53
-
*/
54
51
@After
55
52
publicvoidtearDown() throwsException {
56
53
if (this.testProject != null) {
57
54
if (this.testProject.exists() && this.testProject.isAccessible()) {
Copy file name to clipboardExpand all lines: net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/runtime/cmd/ReviewCmdTest.java
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -67,17 +67,15 @@ public void setUp() throws Exception {
67
67
68
68
@After
69
69
publicvoidtearDown() throwsException {
70
-
try {
71
-
if (this.testProject != null) {
72
-
if (this.testProject.exists() && this.testProject.isAccessible()) {
Copy file name to clipboardExpand all lines: net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/runtime/properties/ProjectPropertiesModelTest.java
Copy file name to clipboardExpand all lines: net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/ui/properties/UpdateProjectPropertiesCmdTest.java
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
packagenet.sourceforge.pmd.eclipse.ui.properties;
6
6
7
7
importorg.eclipse.core.resources.IProject;
8
+
importorg.eclipse.core.resources.IResource;
8
9
importorg.junit.After;
9
10
importorg.junit.Assert;
10
11
importorg.junit.Before;
@@ -32,16 +33,15 @@ public void setUp() throws Exception {
32
33
33
34
@After
34
35
publicvoidtearDown() throwsException {
35
-
try {
36
-
// 1. Delete the test project
37
-
if (this.testProject != null) {
38
-
if (this.testProject.exists() && this.testProject.isAccessible()) {
39
-
this.testProject.delete(true, true, null);
40
-
this.testProject = null;
41
-
}
36
+
if (this.testProject != null) {
37
+
if (this.testProject.exists() && this.testProject.isAccessible()) {
0 commit comments