Package edu.scripps.mwsync

Examples of edu.scripps.mwsync.Sync.run()


      if (options.hasArgument("p")) {
        sync.runForPages((String) options.valueOf("p"));
      } else if (options.hasArgument("h")) {
        sync.runChangesFromHoursAgo((Integer)options.valueOf("h"));
      } else {
        sync.run();
      }
    } 
}
View Full Code Here


  public void testRun() {
    MockWiki src = new MockWiki("url1");
    MockWiki tgt = new MockWiki("url2");
    long period = 1000;
    Sync sync = new Sync(src, tgt, period);
    sync.run();
    assertEquals(tgt.editText, Arrays.asList(
        "Sample Page Text", "Sample Page Text", "Sample Page Text"));
   
  }
 
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.