[jboss-svn-commits] JBL Code SVN: r12996 - 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
Mon Jul 2 03:54:18 EDT 2007


Author: beve
Date: 2007-07-02 03:54:18 -0400 (Mon, 02 Jul 2007)
New Revision: 12996

Modified:
   labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/JMSGatewayListenerIntegrationTest.java
Log:
Added setUp and tearDown methods that start and stop a MockRegistry. This is to avoid the NullPointer that was being generated.


Modified: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/JMSGatewayListenerIntegrationTest.java
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/JMSGatewayListenerIntegrationTest.java	2007-07-02 07:52:04 UTC (rev 12995)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/gateway/JMSGatewayListenerIntegrationTest.java	2007-07-02 07:54:18 UTC (rev 12996)
@@ -22,6 +22,7 @@
 
 package org.jboss.soa.esb.listeners.gateway;
 
+import org.jboss.internal.soa.esb.services.registry.MockRegistry;
 import org.jboss.soa.esb.ConfigurationException;
 import org.jboss.soa.esb.addressing.eprs.JMSEpr;
 import org.jboss.soa.esb.common.tests.BaseTest;
@@ -35,6 +36,13 @@
 	{
 	}
 	
+    public void setUp() throws Exception {
+        MockRegistry.install();
+     }
+    public void tearDown() throws Exception {
+        MockRegistry.uninstall();
+    }
+	
 	public void testGateway () throws Exception
 	{
 		ConfigTree tree = new ConfigTree("test");




More information about the jboss-svn-commits mailing list