Author: craigmcc
Date: Sun Jul 16 20:57:33 2006
New Revision: 422614
URL: http://svn.apache.org/viewvc?rev=422614&view=rev
Log:
[SHALE-223] Make the test work against both JSF RI and MyFaces 1.1.
There is a difference in the two implementations on whether a DOM
element for an <h:messages> component gets created when there are no
actual messages, so we cannot assume one way or the other.
Modified:
shale/trunk/shale-apps/shale-usecases/src/test/java/org/apache/shale/usecases/systest/TokenTestCase.java
Modified:
shale/trunk/shale-apps/shale-usecases/src/test/java/org/apache/shale/usecases/systest/TokenTestCase.java
URL:
http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-usecases/src/test/java/org/apache/shale/usecases/systest/TokenTestCase.java?rev=422614&r1=422613&r2=422614&view=diff
==============================================================================
---
shale/trunk/shale-apps/shale-usecases/src/test/java/org/apache/shale/usecases/systest/TokenTestCase.java
(original)
+++
shale/trunk/shale-apps/shale-usecases/src/test/java/org/apache/shale/usecases/systest/TokenTestCase.java
Sun Jul 16 20:57:33 2006
@@ -154,7 +154,9 @@
form = (HtmlForm) element("form");
assertNotNull(form);
messages = element("form:messages");
- assertNull(messages);
+ // MyFaces 1.1 and the JSF RI 1.1 are inconsistent about whether the
+ // "messages" element is actually created when there are no messages
+// assertNull(messages);
value = (HtmlTextInput) element("form:value");
assertNotNull(value);
assertEquals("", value.getValueAttribute());