Examples of checkAgain()


Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

      this.processor = createTest(new Info(prefs), this.updateMap);
      I_ChangeDetector changeDetector = processor.getChangeDetector();
     
      for (int i=0; i<2; i++) {
         log.info("Testing no table ...");
         changeDetector.checkAgain(null);
         sleep(500);
         assertEquals("Number of message is wrong", 0, this.updateMap.size());
      }

      {
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

      }

      {
      log.info("Now testing an empty table ...");
      this.dbPool.update("CREATE TABLE TEST_TS (ts TIMESTAMP(9), colKey NUMBER(10,3), col1 VARCHAR(20), col2 NUMBER(12), ICAO_ID VARCHAR(10))");
      changeDetector.checkAgain(null);
      sleep(500);
      assertEquals("Number of message is wrong", 1, this.updateMap.size());
      String xml = (String)this.updateMap.get("db.change.event.${groupColValue}");
      assertNotNull("No db.change.event.${groupColValue} message has arrived", xml);
      assertEquals("", xml);
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

      String xml = (String)this.updateMap.get("db.change.event.${groupColValue}");
      assertNotNull("No db.change.event.${groupColValue} message has arrived", xml);
      assertEquals("", xml);
      this.updateMap.clear();

      changeDetector.checkAgain(null);
      sleep(500);
      assertEquals("Number of message is wrong", 0, this.updateMap.size());
      }

      {
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

      }

      {
      log.info("Insert one row");
      this.dbPool.update("INSERT INTO TEST_TS VALUES (CURRENT_TIMESTAMP, '1.1', '<Bla', '9000', 'EDDI')");
      changeDetector.checkAgain(null);
      sleep(500);
      assertEquals("Number of message is wrong", 1, this.updateMap.size());
      String xml = (String)this.updateMap.get("db.change.event.EDDI");
      assertEquals("", xml);
      this.updateMap.clear();
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

      assertEquals("Number of message is wrong", 1, this.updateMap.size());
      String xml = (String)this.updateMap.get("db.change.event.EDDI");
      assertEquals("", xml);
      this.updateMap.clear();

      changeDetector.checkAgain(null);
      sleep(500);
      assertEquals("Number of message is wrong", 0, this.updateMap.size());
      }

      {
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

      }

      {
         log.info("Update one row");
         this.dbPool.update("UPDATE TEST_TS SET ts=CURRENT_TIMESTAMP, colKey='4.44' WHERE ICAO_ID='EDDI'");
         changeDetector.checkAgain(null);
         Thread.sleep(500);
         assertEquals("Number of message is wrong", 1, this.updateMap.size());
         String xml = (String)this.updateMap.get("db.change.event.EDDI");
         assertNotNull("xml returned is null", xml);
         assertEquals("", xml);
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

         String xml = (String)this.updateMap.get("db.change.event.EDDI");
         assertNotNull("xml returned is null", xml);
         assertEquals("", xml);
         this.updateMap.clear();

         changeDetector.checkAgain(null);
         sleep(500);
         assertEquals("Number of message is wrong", 0, this.updateMap.size());
      }

      // Is not detected by Timestamp poller!
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

      // Is not detected by Timestamp poller!
      {
         log.info("Delete one row");
         this.dbPool.update("DELETE FROM TEST_TS WHERE ICAO_ID='EDDI'");
         changeDetector.checkAgain(null);
         sleep(500);
         assertEquals("Number of message is wrong", 0, this.updateMap.size());
         // TODO: We don't know that EDDI was deleted
         //String xml = (String)this.updateMap.get("db.change.event.${groupColValue}");
         //assertNotNull("xml returned is null", xml);
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

         //String xml = (String)this.updateMap.get("db.change.event.${groupColValue}");
         //assertNotNull("xml returned is null", xml);
         //assertEquals("", xml);
         this.updateMap.clear();

         changeDetector.checkAgain(null);
         sleep(500);
         assertEquals("Number of message is wrong", 0, this.updateMap.size());
      }

      {
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwatcher.detector.I_ChangeDetector.checkAgain()

      }

      {
         log.info("Drop a table");
         this.dbPool.update("DROP TABLE TEST_TS");
         changeDetector.checkAgain(null);
         sleep(500);
         assertEquals("Number of message is wrong", 1, this.updateMap.size());
         String xml = (String)this.updateMap.get("db.change.event.${groupColValue}");
         assertNotNull("xml returned is null", xml);
         assertEquals("", xml);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.