[jboss-svn-commits] JBL Code SVN: r13424 - labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jul 12 16:09:54 EDT 2007


Author: beve
Date: 2007-07-12 16:09:54 -0400 (Thu, 12 Jul 2007)
New Revision: 13424

Added:
   labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing/JmsRouterIntegrationTest.java
Removed:
   labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing/JmsRouterUnitTest.java
Log:
Renamed JmsRouterUnitTest JmsRouterIntegrationTest as is requires a JMS Provider.


Copied: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing/JmsRouterIntegrationTest.java (from rev 13413, labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing/JmsRouterUnitTest.java)
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing/JmsRouterIntegrationTest.java	                        (rev 0)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing/JmsRouterIntegrationTest.java	2007-07-12 20:09:54 UTC (rev 13424)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.soa.esb.actions.routing;
+
+import junit.framework.TestCase;
+
+import org.jboss.soa.esb.actions.ActionProcessingException;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+
+public class JmsRouterIntegrationTest extends TestCase
+{
+	public JmsRouterIntegrationTest ()
+	{
+	}
+
+	public void testRouter () throws Exception
+	{
+		ConfigTree tree = new ConfigTree("test");
+		
+		tree.setAttribute("jndiName", "foobar");
+		
+		JMSRouter router = new JMSRouter(tree);
+		boolean exception = false;
+		
+		Message msg = MessageFactory.getInstance().getMessage();
+		
+		msg.getBody().setByteArray("hello world".getBytes());
+		
+		try
+		{
+			router.route(msg);
+		}
+		catch (ActionProcessingException ex)
+		{
+			exception = true;
+		}
+		
+		if (!exception)
+			fail();
+		
+		router.unwrap = true;
+		
+		try
+		{
+			msg.getBody().add("org.jboss.soa.esb.actions.current.after", "hello world");
+			router.process(msg);
+		}
+		catch (ActionProcessingException ex)
+		{
+			exception = true;
+		}
+
+		if (!exception)
+			fail();
+		
+		router.getErrorNotification(null);
+		router.getOkNotification(null);
+	}
+	
+}

Deleted: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing/JmsRouterUnitTest.java
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing/JmsRouterUnitTest.java	2007-07-12 19:47:30 UTC (rev 13423)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/actions/routing/JmsRouterUnitTest.java	2007-07-12 20:09:54 UTC (rev 13424)
@@ -1,82 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.soa.esb.actions.routing;
-
-import junit.framework.TestCase;
-
-import org.jboss.soa.esb.actions.ActionProcessingException;
-import org.jboss.soa.esb.helpers.ConfigTree;
-import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.esb.message.format.MessageFactory;
-
-public class JmsRouterUnitTest extends TestCase
-{
-	public JmsRouterUnitTest ()
-	{
-	}
-
-	public void testRouter () throws Exception
-	{
-		ConfigTree tree = new ConfigTree("test");
-		
-		tree.setAttribute("jndiName", "foobar");
-		
-		JMSRouter router = new JMSRouter(tree);
-		boolean exception = false;
-		
-		Message msg = MessageFactory.getInstance().getMessage();
-		
-		msg.getBody().setByteArray("hello world".getBytes());
-		
-		try
-		{
-			router.route(msg);
-		}
-		catch (ActionProcessingException ex)
-		{
-			exception = true;
-		}
-		
-		if (!exception)
-			fail();
-		
-		router.unwrap = true;
-		
-		try
-		{
-			msg.getBody().add("org.jboss.soa.esb.actions.current.after", "hello world");
-			router.process(msg);
-		}
-		catch (ActionProcessingException ex)
-		{
-			exception = true;
-		}
-
-		if (!exception)
-			fail();
-		
-		router.getErrorNotification(null);
-		router.getOkNotification(null);
-	}
-	
-}




More information about the jboss-svn-commits mailing list