Author: vrubezhny
Date: 2011-07-29 12:56:21 -0400 (Fri, 29 Jul 2011)
New Revision: 33356
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/el/ELExprPartitionerTest.java
Log:
JBIDE-9422
org.jboss.tools.seam.ui.test JUnit Test failure
KB natures check is disabled on test project (caused seam-ui tests to hang up)
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/el/ELExprPartitionerTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/el/ELExprPartitionerTest.java 2011-07-29
16:00:35 UTC (rev 33355)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/el/ELExprPartitionerTest.java 2011-07-29
16:56:21 UTC (rev 33356)
@@ -35,34 +35,36 @@
public static Test suite() {
return new TestSuite(ELExprPartitionerTest.class);
}
- private boolean isKbNatureCheckNeed = false;
+ private String isKbNatureCheckNeed = null;
public static final QualifiedName IS_KB_NATURES_CHECK_NEED = new QualifiedName(
"", "Is KB natures check"); //$NON-NLS-1$
public void setUp() throws Exception {
- System.out.println(">>>> ELExprPartitionerTest
>>>>");
+// System.out.println(">>>> ELExprPartitionerTest
>>>>");
provider = new TestProjectProvider("org.jboss.tools.seam.ui.test",
"projects/" + PROJECT_NAME, PROJECT_NAME, makeCopy);
project = provider.getProject();
Throwable exception = null;
assertNull("An exception caught: " + (exception != null?
exception.getMessage() : ""), exception);
- isKbNatureCheckNeed =
Boolean.valueOf(project.getPersistentProperty(IS_KB_NATURES_CHECK_NEED));
- System.out.println("Is KB natures check: " + isKbNatureCheckNeed);
- project.setPersistentProperty(IS_KB_NATURES_CHECK_NEED, //$NON-NLS-1$
- Boolean.toString(false));
- System.out.println("Is KB natures check: " +
Boolean.valueOf(project.getPersistentProperty(IS_KB_NATURES_CHECK_NEED)));
+ if (project != null) {
+ isKbNatureCheckNeed = project.getPersistentProperty(IS_KB_NATURES_CHECK_NEED);
+// System.out.println("Is KB natures check: '" + isKbNatureCheckNeed +
"'");
+ project.setPersistentProperty(IS_KB_NATURES_CHECK_NEED, //$NON-NLS-1$
+ Boolean.toString(false));
+// System.out.println("Is KB natures check: '" +
project.getPersistentProperty(IS_KB_NATURES_CHECK_NEED) + "'");
+ }
}
protected void tearDown() throws Exception {
if (project != null) {
project.setPersistentProperty(IS_KB_NATURES_CHECK_NEED, //$NON-NLS-1$
- Boolean.toString(isKbNatureCheckNeed));
- System.out.println("Is KB natures check: " +
Boolean.valueOf(project.getPersistentProperty(IS_KB_NATURES_CHECK_NEED)));
+ isKbNatureCheckNeed);
+// System.out.println("Is KB natures check: '" +
project.getPersistentProperty(IS_KB_NATURES_CHECK_NEED) + "'");
}
if(provider != null) {
provider.dispose();
}
- System.out.println("<<<< ELExprPartitionerTest
<<<<");
+// System.out.println("<<<< ELExprPartitionerTest
<<<<");
}
public void testELExprPartitioner() throws Exception{
Show replies by date