Author: ozizka(a)redhat.com
Date: 2009-08-27 22:56:23 -0400 (Thu, 27 Aug 2009)
New Revision: 711
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ResourceTestBase.java
Log:
* ConnFactoryOperationsTest updated - Max Connections In Use Count:6 => Max
Connections In Use Count:(6|7|8)
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ResourceTestBase.java
===================================================================
---
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ResourceTestBase.java 2009-08-28
02:55:30 UTC (rev 710)
+++
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ResourceTestBase.java 2009-08-28
02:56:23 UTC (rev 711)
@@ -583,9 +583,10 @@
boolean isSuccess = isRegEx
? actualResult.matches(expectedBuffer.toString())
: actualResult.contains(expectedBuffer.toString()) ;
-
+ String condVerb = isRegEx ? "match" : "contain";
+
if( !isSuccess ){
- fail(errorMessage + " - \nexpected the result to contain:\n\n" +
expectedBuffer.toString() + "\n\nbut was:\n\n" + actualResult );
+ fail(errorMessage + " - \nexpected the result to
"+condVerb+":\n\n" + expectedBuffer.toString() + "\n\nbut
was:\n\n" + actualResult );
}
}
Show replies by date