Author: dgolovin
Date: 2008-01-28 16:50:48 -0500 (Mon, 28 Jan 2008)
New Revision: 6002
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
fix for test errors. error line numebrs updated to real ones.
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2008-01-28
21:49:34 UTC (rev 6001)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2008-01-28
21:50:48 UTC (rev 6002)
@@ -292,14 +292,9 @@
assertTrue("Wrong number of problem markers", lineNumbers.length ==
messages.length && messages.length == 2);
- if(messages[1].indexOf("destroyMethod2") >= 0){
- assertTrue("Problem marker has wrong line number", lineNumbers[0] == 32);
- assertTrue("Problem marker has wrong line number", lineNumbers[1] == 38);
- }else{
- assertTrue("Problem marker has wrong line number", lineNumbers[0] == 38);
- assertTrue("Problem marker has wrong line number", lineNumbers[1] == 32);
-
- }
+ assertTrue("Problem marker has wrong line number", lineNumbers[0] == 34);
+ assertTrue("Problem marker has wrong line number", lineNumbers[1] == 39);
+
// Duplicate @Create method
System.out.println("Test - Duplicate @Create method");
@@ -915,7 +910,5 @@
public static void waitForJob() {
EditorTestHelper.joinJobs(1000,10000,500);
- //then wait for a while to Workspace runnable is finished
- EditorTestHelper.joinJobs(2000, 2000, 500);
}
}
\ No newline at end of file
Show replies by date