[jboss-svn-commits] JBL Code SVN: r5784 - labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Aug 11 14:05:58 EDT 2006


Author: tfennelly
Date: 2006-08-11 14:05:55 -0400 (Fri, 11 Aug 2006)
New Revision: 5784

Modified:
   labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/SQLTablePollerTest.java
Log:
Fixed test

Modified: labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/SQLTablePollerTest.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/SQLTablePollerTest.java	2006-08-11 17:07:49 UTC (rev 5783)
+++ labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/SQLTablePollerTest.java	2006-08-11 18:05:55 UTC (rev 5784)
@@ -56,14 +56,18 @@
 
 	public void test() throws InterruptedException, SQLException {
 		// Insert the row into the table and wait for the status to go to "P" (Pending) to "D" (Done)...
-		int insertCount = DbUtils.executeUpdate("insert into test_poll_table values ('SSSS','ref1','An arbitrary message', '1111111111','2222222222','P')");
+		int insertCount = DbUtils.executeUpdate("insert into test_poll_table values ('pepe','ref1','An arbitrary message', '1111111111','2222222222','P')");
 
 		assertEquals("Failed to create row in table.", 1, insertCount);
 		
 		// FIXME: This assertion is broken - prob something wrong with the listener config - it's status isn't changing to "D" (Done)  
-		DbUtils.assertNonEmptyResultSet("select * from test_poll_table where src='SSSS' and ref='ref1' and status='P'", 10000);
+		DbUtils.assertNonEmptyResultSet("select * from test_poll_table where src='pepe' and ref='ref1' and status='D'", 10000);
+
+		// Make sure the notifications appear in the "notifyDir" dir...
+		FileUtils.assertFileExists(new File(notifyDir, "GpListenerExample.notifOK"), 10000);
+		// Make sure there's no open file handles on the files created/copied by the ESB...
+		FileUtils.assertCanDelete(new File(notifyDir, "GpListenerExample.notifOK"), 10000);		
 		
-		
 		// There should have been no exceptions...
 		listenersMgr.assertNotInException();
 		




More information about the jboss-svn-commits mailing list