Author: ozizka(a)redhat.com
Date: 2009-04-27 15:46:16 -0400 (Mon, 27 Apr 2009)
New Revision: 359
Added:
trunk/jsfunit/testdata/ejb3/
trunk/jsfunit/testdata/ejb3/BasicEJB3.jar
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EjbTest.java
Log:
Updated EJB3 test
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EjbTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EjbTest.java 2009-04-27
19:43:47 UTC (rev 358)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EjbTest.java 2009-04-27
19:46:16 UTC (rev 359)
@@ -92,9 +92,15 @@
log.info("renderResponse() called: " +
server.getFacesContext().getRenderResponse() );
log.info("responseComplete() called: " +
server.getFacesContext().getResponseComplete() );
+ String errorMessage =
+ ( server.getFacesMessages().hasNext()
+ && server.getFacesMessages().next().getSeverity() !=
FacesMessage.SEVERITY_INFO ) ?
+ " Faces message: "+server.getFacesMessages().next()
+ : ""; // Awful code
+
// FAILS because of NPE and HTTP 500.
// assert that the success message appeared on the client side
- assertTrue("Success message not found.",
client.getPageAsText().contains("Resource " + BASIC_JAR + " created
successfully!"));
+ assertTrue("Success message not found."+errorMessage,
client.getPageAsText().contains("Resource " + BASIC_JAR + " created
successfully!"));
// assert text and severity level for FacesMessage on server side
assertTrue(server.getFacesMessages().hasNext());
Added: trunk/jsfunit/testdata/ejb3/BasicEJB3.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsfunit/testdata/ejb3/BasicEJB3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream