[jbosstools-commits] JBoss Tools SVN: r30911 - trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Apr 28 11:59:23 EDT 2011
Author: vrubezhny
Date: 2011-04-28 11:59:22 -0400 (Thu, 28 Apr 2011)
New Revision: 30911
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistJbide1645Test.java
Log:
JBIDE-8759
3 test failures in org.jboss.tools.seam.ui.test.SeamUiAllTests
Issue is fixed
Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistJbide1645Test.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistJbide1645Test.java 2011-04-28 15:53:39 UTC (rev 30910)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistJbide1645Test.java 2011-04-28 15:59:22 UTC (rev 30911)
@@ -7,7 +7,6 @@
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
import org.jboss.tools.common.el.core.ELCorePlugin;
import org.jboss.tools.common.el.core.ca.preferences.ELContentAssistPreferences;
import org.jboss.tools.common.el.ui.ca.ELProposalProcessor;
@@ -25,6 +24,7 @@
private static final String POSTFIX_STRING = " </h:commandButton>";
private static final String INSERT_BEFORE_STRING = "<rich:panel";
private static final String INSERTION_STRING = PREFIX_STRING + POSTFIX_STRING;
+ Throwable exception = null;
public static Test suite() {
return new TestSuite(SeamELContentAssistJbide1645Test.class);
@@ -33,14 +33,13 @@
public void setUp() throws Exception {
provider = new TestProjectProvider("org.jboss.tools.seam.ui.test", null, PROJECT_NAME, makeCopy);
project = provider.getProject();
- Throwable exception = null;
try {
project.refreshLocal(IResource.DEPTH_INFINITE, null);
} catch (Exception x) {
exception = x;
- x.printStackTrace();
}
- assertNull("An exception caught: " + (exception != null? exception.getMessage() : ""), exception);
+ // No asserts should be done in setUp() method
+// assertNull("An exception caught: " + (exception != null? exception.getMessage() : ""), exception);
}
protected void tearDown() throws Exception {
@@ -50,15 +49,20 @@
}
public void testSeamELContentAssistJbide1645() {
+ assertNull("An exception caught: " + (exception != null? exception.getMessage() : ""), exception);
+
ELCorePlugin.getDefault().getPreferenceStore().setValue(ELContentAssistPreferences.SHOW_METHODS_WITH_PARENTHESES_ONLY, false);
openEditor(PAGE_NAME);
-
+
+ JobUtils.waitForIdle();
+
try {
// Find start of <rich:panel> tag
String documentContent = document.get();
+
int start = (documentContent == null ? -1 : documentContent.indexOf(INSERT_BEFORE_STRING));
int offsetToTest = start + PREFIX_STRING.length();
-
+
assertTrue("Cannot find the starting point in the test file \"" + PAGE_NAME + "\"", (start != -1));
String documentContentModified = documentContent.substring(0, start) +
More information about the jbosstools-commits
mailing list