[jboss-svn-commits] JBL Code SVN: r14009 - labs/jbossesb/trunk/product/samples/quickstarts/tests/src/org/jboss/soa/esb/quickstart/test.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Aug 3 14:33:08 EDT 2007
Author: ldimaggi at redhat.com
Date: 2007-08-03 14:33:08 -0400 (Fri, 03 Aug 2007)
New Revision: 14009
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/tests/src/org/jboss/soa/esb/quickstart/test/DynamicRouterTest.java
Log:
Modified to check for presence of output message in all 3 output queues - and to delete the event text file at the end of the test. Requires a change to rosetta/src/org/jboss/soa/esb/actions/SystemPrintln.java to always open event text file for appending.
Modified: labs/jbossesb/trunk/product/samples/quickstarts/tests/src/org/jboss/soa/esb/quickstart/test/DynamicRouterTest.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/tests/src/org/jboss/soa/esb/quickstart/test/DynamicRouterTest.java 2007-08-03 18:27:05 UTC (rev 14008)
+++ labs/jbossesb/trunk/product/samples/quickstarts/tests/src/org/jboss/soa/esb/quickstart/test/DynamicRouterTest.java 2007-08-03 18:33:08 UTC (rev 14009)
@@ -6,6 +6,7 @@
import java.net.URLConnection;
import java.util.Date;
import java.util.Hashtable;
+import java.io.File;
import javax.management.ObjectName;
import junit.framework.Test;
@@ -40,8 +41,17 @@
sendMessage();
Thread.sleep(10000); // wait for message to post.
Hashtable theTable = Helpers.getMessageString(LOG_FILE);
- String theMessage = (String) theTable.get("Message1");
- assertEquals("The strings should match", theMessage, JMS_MESSAGE);
+
+ String theMessage1 = (String) theTable.get("Message1");
+ String theMessage2 = (String) theTable.get("Message2");
+ String theMessage3 = (String) theTable.get("Message3");
+
+ assertEquals("The strings should match", theMessage1, JMS_MESSAGE);
+ assertEquals("The strings should match", theMessage2, JMS_MESSAGE);
+ assertEquals("The strings should match", theMessage3, JMS_MESSAGE);
+
+ File target = new File(LOG_FILE);
+ target.delete();
}
public void sendMessage() throws Exception
More information about the jboss-svn-commits
mailing list