Skip to content

Commit 584df90

Browse files
committed
Build first to avoid automatic build jumping in
1 parent fb39812 commit 584df90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.eclipse.core.resources.IMarker;
1212
import org.eclipse.core.resources.IProject;
1313
import org.eclipse.core.resources.IResource;
14+
import org.eclipse.core.resources.IncrementalProjectBuilder;
1415
import org.eclipse.core.runtime.CoreException;
1516
import org.eclipse.core.runtime.Path;
1617
import org.eclipse.jdt.core.IClasspathEntry;
@@ -104,6 +105,9 @@ public void tearDown() throws Exception {
104105
*/
105106
@Test
106107
public void testReviewCmdBasic() throws CoreException {
108+
// build first to avoid automatic build jumping in
109+
this.testProject.build(IncrementalProjectBuilder.FULL_BUILD, null);
110+
107111
final ReviewCodeCmd cmd = new ReviewCodeCmd();
108112
cmd.addResource(this.testProject);
109113
cmd.performExecute();

0 commit comments

Comments
 (0)