Author: rob.stryker(a)jboss.com
Date: 2012-10-04 03:42:04 -0400 (Thu, 04 Oct 2012)
New Revision: 44280
Modified:
trunk/as/tests/org.jboss.tools.as.test.core/src/org/jboss/tools/as/test/core/internal/utils/ResourceUtils.java
trunk/as/tests/org.jboss.tools.as.test.core/src/org/jboss/tools/as/test/core/parametized/server/publishing/defect/RepublishDefectTest.java
Log:
JBIDE-12786 fix for inconsistant test results
Modified:
trunk/as/tests/org.jboss.tools.as.test.core/src/org/jboss/tools/as/test/core/internal/utils/ResourceUtils.java
===================================================================
---
trunk/as/tests/org.jboss.tools.as.test.core/src/org/jboss/tools/as/test/core/internal/utils/ResourceUtils.java 2012-10-04
07:29:39 UTC (rev 44279)
+++
trunk/as/tests/org.jboss.tools.as.test.core/src/org/jboss/tools/as/test/core/internal/utils/ResourceUtils.java 2012-10-04
07:42:04 UTC (rev 44280)
@@ -81,8 +81,8 @@
}
public static void deleteProject(String name) {
- final IProject projectA = findProject("d1");
- Job deleteJob = new Job("delete d1") {
+ final IProject projectA = findProject(name);
+ Job deleteJob = new Job("delete " + name) {
protected IStatus run(IProgressMonitor monitor) {
try {
projectA.delete(true, new NullProgressMonitor());
Modified:
trunk/as/tests/org.jboss.tools.as.test.core/src/org/jboss/tools/as/test/core/parametized/server/publishing/defect/RepublishDefectTest.java
===================================================================
---
trunk/as/tests/org.jboss.tools.as.test.core/src/org/jboss/tools/as/test/core/parametized/server/publishing/defect/RepublishDefectTest.java 2012-10-04
07:29:39 UTC (rev 44279)
+++
trunk/as/tests/org.jboss.tools.as.test.core/src/org/jboss/tools/as/test/core/parametized/server/publishing/defect/RepublishDefectTest.java 2012-10-04
07:42:04 UTC (rev 44280)
@@ -56,7 +56,7 @@
OperationTestCase.runAndVerify(dyn1Model);
IDataModel dyn2Model =
CreateProjectOperationsUtility.getWebDataModel(ap("d2v"), ap("ear"),
null, null, null, JavaEEFacetConstants.WEB_23, true);
OperationTestCase.runAndVerify(dyn2Model);
- addModuleToServer(ServerUtil.getModule(findProject("ear")));
+ addModuleToServer(ServerUtil.getModule(findProject(ap("ear"))));
}
/* Append myCount as a suffix to this original*/
Show replies by date