[jboss-cvs] JBossAS SVN: r92695 - branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Aug 22 14:02:53 EDT 2009
Author: smarlow at redhat.com
Date: 2009-08-22 14:02:53 -0400 (Sat, 22 Aug 2009)
New Revision: 92695
Modified:
branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test/PreFillPoolingUnitTestCase.java
Log:
show more information so that we can fix the unit test failure. I am guessing that the inital pool state is different than we expect and the test should take that into account.
Modified: branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test/PreFillPoolingUnitTestCase.java
===================================================================
--- branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test/PreFillPoolingUnitTestCase.java 2009-08-22 15:35:05 UTC (rev 92694)
+++ branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test/PreFillPoolingUnitTestCase.java 2009-08-22 18:02:53 UTC (rev 92695)
@@ -223,7 +223,8 @@
Integer count = (Integer)getServer().getAttribute(CRI_PREFILL_POOL, CONN_NAME);
Integer min = (Integer)getServer().getAttribute(CRI_PREFILL_POOL, MIN_NAME);
-
+ Integer initialCount = count;
+ Integer initialMin = min;
assertTrue(count.intValue() != min.intValue());
InitialContext ctx = new InitialContext();
@@ -234,7 +235,8 @@
count = (Integer)getServer().getAttribute(CRI_PREFILL_POOL, CONN_NAME);
min = (Integer)getServer().getAttribute(CRI_PREFILL_POOL, MIN_NAME);
- assertTrue("Count=" + count + ", Min=" + min, count.intValue() == min.intValue());
+ assertTrue("Count=" + count + ", Min=" + min +", initial Count before getting connection =" + initialCount +
+ ", initial Min before getting connection = "+ initialMin, count.intValue() == min.intValue());
conn.close();
More information about the jboss-cvs-commits
mailing list