Author: dgolovin
Date: 2007-09-17 18:53:10 -0400 (Mon, 17 Sep 2007)
New Revision: 3665
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/SeamRuntimeManagerTest.java
Log:
fix JUnit tests errors:
testGetRuntimes Failure Seam runtime 'Seam 1.2.0' is not created
junit.framework.AssertionFailedError: Seam runtime 'Seam 1.2.0' is not created
at
org.jboss.tools.seam.core.test.project.facet.SeamRuntimeManagerTest.testGetRuntimes(SeamRuntimeManagerTest.java:52)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:354)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:206)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:35)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:533)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:155)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
at org.eclipse.core.launcher.Main.main(Main.java:30)
testGetRuntimesSeamVersion Failure Error in obtaining seam runtimes lis for Seam 1.2
junit.framework.AssertionFailedError: Error in obtaining seam runtimes lis for Seam 1.2
at
org.jboss.tools.seam.core.test.project.facet.SeamRuntimeManagerTest.testGetRuntimesSeamVersion(SeamRuntimeManagerTest.java:62)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:354)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:206)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:35)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:533)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:155)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
at org.eclipse.core.launcher.Main.main(Main.java:30)
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/SeamRuntimeManagerTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/SeamRuntimeManagerTest.java 2007-09-17
21:00:59 UTC (rev 3664)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/SeamRuntimeManagerTest.java 2007-09-17
22:53:10 UTC (rev 3665)
@@ -49,7 +49,7 @@
*/
public void testGetRuntimes() throws IOException {
SeamRuntime[] rtms = manager.getRuntimes();
- assertTrue("Seam runtime 'Seam 1.2.0' is not created",
rtms.length!=1);
+ assertTrue("Seam runtime 'Seam 1.2.0' is not created",
rtms.length==1);
assertTrue("Seam runtime 'Seam 1.2.0' is not created",
rtms[0].getName().equals("Seam 1.2.0"));
}
@@ -59,7 +59,7 @@
public void testGetRuntimesSeamVersion() {
SeamRuntimeManager manager = SeamRuntimeManager.getInstance();
SeamRuntime[] rtms = manager.getRuntimes(SeamVersion.SEAM_1_2);
- assertTrue("Error in obtaining seam runtimes lis for Seam 1.2",
rtms.length!=1);
+ assertTrue("Error in obtaining seam runtimes lis for Seam 1.2",
rtms.length==1);
}
/**