Author: fbricon
Date: 2012-02-10 04:15:16 -0500 (Fri, 10 Feb 2012)
New Revision: 38590
Modified:
trunk/maven/tests/org.jboss.tools.maven.configurators.tests/src/org/jboss/tools/maven/configurators/tests/JpaConfiguratorTest.java
Log:
JBIDE-10750 : fixed test case where eclipselink not available in the TP
Modified:
trunk/maven/tests/org.jboss.tools.maven.configurators.tests/src/org/jboss/tools/maven/configurators/tests/JpaConfiguratorTest.java
===================================================================
---
trunk/maven/tests/org.jboss.tools.maven.configurators.tests/src/org/jboss/tools/maven/configurators/tests/JpaConfiguratorTest.java 2012-02-10
09:14:33 UTC (rev 38589)
+++
trunk/maven/tests/org.jboss.tools.maven.configurators.tests/src/org/jboss/tools/maven/configurators/tests/JpaConfiguratorTest.java 2012-02-10
09:15:16 UTC (rev 38590)
@@ -27,19 +27,20 @@
return;
}
-
assertIsJpaProject(project, JpaFacet.VERSION_2_0);
assertNoErrors(project);
JpaProjectManager manager = JptJpaCorePlugin.getJpaProjectManager();
JpaProject jpa = manager.getJpaProject(project);
- assertTrue(jpa.getJpaPlatform().getId() + " is not the expected eclipselink
platform", jpa.getJpaPlatform().getId().startsWith("eclipselink"));
+ String pid = jpa.getJpaPlatform().getId();
+ assertTrue(pid + " is not the expected platform",
pid.startsWith("eclipselink") || pid.startsWith("generic"));
project = importProject( "projects/jpa/simple-1.0/pom.xml");
waitForJobsToComplete();
assertIsJpaProject(project, JpaFacet.VERSION_1_0);
assertNoErrors(project);
jpa = manager.getJpaProject(project);
- assertTrue(jpa.getJpaPlatform().getId() + " is not the expected hibernate
platform", jpa.getJpaPlatform().getId().startsWith("hibernate"));
+ pid = jpa.getJpaPlatform().getId();
+ assertTrue(pid + " is not the expected hibernate platform",
pid.startsWith("hibernate"));
}
protected void assertIsJpaProject(IProject project, IProjectFacetVersion
expectedJpaVersion) throws Exception {
Show replies by date