[jboss-svn-commits] JBL Code SVN: r16092 - labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Oct 26 12:47:25 EDT 2007


Author: tcunning
Date: 2007-10-26 12:47:25 -0400 (Fri, 26 Oct 2007)
New Revision: 16092

Modified:
   labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/SqlTableGatewayListenerUnitTest.java
Log:
bug:JBESB-1247
Fix test- we no longer throw a RunTimeException on the thread if we can't
connect - we need to allow reconnection.


Modified: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/SqlTableGatewayListenerUnitTest.java
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/SqlTableGatewayListenerUnitTest.java	2007-10-26 15:59:25 UTC (rev 16091)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/SqlTableGatewayListenerUnitTest.java	2007-10-26 16:47:25 UTC (rev 16092)
@@ -31,6 +31,7 @@
 import org.jboss.soa.esb.addressing.eprs.JDBCEpr;
 import org.jboss.soa.esb.common.tests.BaseTest;
 import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.helpers.persist.JdbcCleanConn;
 import org.jboss.soa.esb.listeners.ListenerTagNames;
 import org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException;
 
@@ -104,19 +105,7 @@
 		}
 		
 		boolean exception = false;
-		
-		try
-		{
-			gateway.prepareStatements();
-		}
-		catch (RuntimeException ex)
-		{
-			exception = true;
-		}
-		
-		if (!exception)
-			fail();
-		
+				
 		tree = new ConfigTree("test");
 
 		tree.setAttribute(JDBCEpr.URL_TAG, getDbUrl());
@@ -155,6 +144,7 @@
 		
 		try
 		{
+			JdbcCleanConn conn = gateway.getDbConn();
 			gateway.prepareStatements();
 		}
 		catch (RuntimeException ex)




More information about the jboss-svn-commits mailing list