Package org.speakright.itest

Examples of org.speakright.itest.SRInteractiveTester$ContentChecker


  /**
   * @param args
   */
  public static void main(String[] args) {
    System.out.println("simpsons demo..");
    SRInteractiveTester tester = createTester();
    tester.run();
    System.out.println("Done.");
  }
View Full Code Here


  /**
   * Creates and initializes the app and tester.
   * @return tester that is ready to be run.
   */
  public static SRInteractiveTester createTester() {
    SRInteractiveTester tester = new SRInteractiveTester();
      String currentDir = SRLocations.fixupDir(System.getProperty("user.dir"));
    tester.setOutputDir(currentDir + "tmpfiles");
   
    AppFactory factory = new AppFactory();
    SRRunner runner = factory.createRunner(appDir, "http://def.com", "", null);

    //change voting path to dir (instead of appDir)
    SRLocations locations = new SRLocations();
    locations.setProjectDir(dir);
    factory.M.m_voting = new Voting(locations);
   
    SRInstance run = runner.getImpl();
    App app = new App();
    tester.init(app, run);
//      tester.start(app, M, locations);
//    run.registerPromptFile(appDir + "prompts.xml"); //our app prompts
    return tester;
  }
View Full Code Here

TOP

Related Classes of org.speakright.itest.SRInteractiveTester$ContentChecker

Copyright © 2018 www.massapicom. 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.