Package com.cueup.hegemon

Examples of com.cueup.hegemon.Script


    if (scriptData == null) {
      this.testScript = null;
    } else {
      try {
        String source = loadPath.load(scriptData.filename() + ".js");
        this.testScript = new Script(scriptData.filename(), source, loadPath, "hegemon/unittest");
      } catch (LoadError e) {
        throw new InitializationError(e);
      }
    }
  }
View Full Code Here


    TestScript scriptData = klass.getAnnotation(TestScript.class);
    if (scriptData == null) {
      throw new InitializationError("Hegemon tests must be annotated with @Script");
    }
    try {
      this.testScript = new Script("", loadPath, "hegemon/core", "hegemon/unittest", scriptData.filename());
    } catch (LoadError e) {
      throw new InitializationError(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.cueup.hegemon.Script

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.