Author: rob.stryker(a)jboss.com
Date: 2012-06-22 06:44:16 -0400 (Fri, 22 Jun 2012)
New Revision: 42173
Modified:
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/TestProjectProvider.java
trunk/tests/tests/org.jboss.tools.tests.test/src/org/jboss/tools/tests/tests/UtilsTest.java
Log:
renamed plugin test missed reference, also NPE
Modified:
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/TestProjectProvider.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/TestProjectProvider.java 2012-06-22
10:08:03 UTC (rev 42172)
+++
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/TestProjectProvider.java 2012-06-22
10:44:16 UTC (rev 42173)
@@ -59,7 +59,8 @@
} else {
project = ResourcesUtils.importProject(bundleName, projectPath, name, null);
}
- project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);
+ if( project != null )
+ project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);
}
} catch (IOException e) {
throw new CoreException(new Status(Status.ERROR,bundleName,e.getMessage(),e));
Modified:
trunk/tests/tests/org.jboss.tools.tests.test/src/org/jboss/tools/tests/tests/UtilsTest.java
===================================================================
---
trunk/tests/tests/org.jboss.tools.tests.test/src/org/jboss/tools/tests/tests/UtilsTest.java 2012-06-22
10:08:03 UTC (rev 42172)
+++
trunk/tests/tests/org.jboss.tools.tests.test/src/org/jboss/tools/tests/tests/UtilsTest.java 2012-06-22
10:44:16 UTC (rev 42173)
@@ -14,7 +14,7 @@
@Test
public void testProjectProvider() throws Exception {
TestProjectProvider provider = new TestProjectProvider(
- "org.jboss.tools.tests.tests", null, PROJECT_NAME, false);
+ "org.jboss.tools.tests.test", null, PROJECT_NAME, false);
IProject project = provider.getProject();
assertNotNull("Project is not imported: " + PROJECT_NAME, project);
assertTrue("Project doesn't exist: " + PROJECT_NAME, project.exists());
Show replies by date