[jboss-cvs] JBossAS SVN: r69773 - trunk/testsuite/src/main/org/jboss/test/jacc/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Feb 11 13:44:35 EST 2008


Author: anil.saldhana at jboss.com
Date: 2008-02-11 13:44:34 -0500 (Mon, 11 Feb 2008)
New Revision: 69773

Modified:
   trunk/testsuite/src/main/org/jboss/test/jacc/test/WebIntegrationUnitTestCase.java
Log:
fix the jacc webintegration unit test

Modified: trunk/testsuite/src/main/org/jboss/test/jacc/test/WebIntegrationUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jacc/test/WebIntegrationUnitTestCase.java	2008-02-11 17:48:57 UTC (rev 69772)
+++ trunk/testsuite/src/main/org/jboss/test/jacc/test/WebIntegrationUnitTestCase.java	2008-02-11 18:44:34 UTC (rev 69773)
@@ -74,23 +74,33 @@
          protected void setUp() throws Exception 
          { 
             super.setUp(); 
+            deploy(loader.getResource(
+                  "messaging/test-destinations-full-service.xml").toString());
             redeploy("jbosstest-web.ear"); 
             flushAuthCache("jbosstest-web"); 
          } 
          protected void tearDown() throws Exception 
          { 
-            undeploy("jbosstest-web.ear"); 
-            super.tearDown(); 
- 
-            // Remove all the messages created during this test 
-            getServer().invoke 
-            ( 
-               new ObjectName("jboss.mq.destination:service=Queue,name=testQueue"), 
-               "removeAllMessages", 
-               new Object[0], 
-               new String[0] 
-            ); 
-          
+            undeploy("jbosstest-web.ear");
+
+            try
+            {
+               // Remove all the messages created during this test
+               getServer().invoke
+               (
+                  new ObjectName("jboss.mq.destination:service=Queue,name=testQueue"),
+                  "removeAllMessages",
+                  new Object[0],
+                  new String[0]
+               );
+            }
+            catch(Exception e)
+            {
+            }
+            ClassLoader loader = Thread.currentThread().getContextClassLoader();
+            undeploy(loader.getResource(
+                  "messaging/test-destinations-full-service.xml").toString());
+            super.tearDown();
          } 
       }; 
       return wrapper; 




More information about the jboss-cvs-commits mailing list