Author: ozizka(a)redhat.com
Date: 2009-09-01 12:48:31 -0400 (Tue, 01 Sep 2009)
New Revision: 731
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
Log:
* EarTest updated.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-09-01
08:54:07 UTC (rev 730)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-09-01
16:48:31 UTC (rev 731)
@@ -1044,8 +1044,9 @@
// Check that we get an error message.
assertTrue( "We should get an error message.",
server.getFacesMessages().hasNext() );
- assertTrue( "We should get an error message.",
- server.getFacesMessages().next().getSeverity() != FacesMessage.SEVERITY_INFO );
+ FacesMessage msg = server.getFacesMessages().next();
+ if( msg.getSeverity() == FacesMessage.SEVERITY_INFO )
+ throw new EmbJoprTestException("We should get an error message. We got INFO msg:
"+msg.getSummary(), this);
// Check that the EAR is not listed as deployed.
assertFalse( "The EAR should not be listed as deployed.",
Show replies by date