Package org.stjs.testing.annotation

Examples of org.stjs.testing.annotation.Scripts


    List<FrameworkMethod> beforeMethods = meth.getTestClass().getAnnotatedMethods(Before.class);
    List<FrameworkMethod> afterMethods = meth.getTestClass().getAnnotatedMethods(After.class);

    final HTMLFixture htmlFixture = testClass.getAnnotation(HTMLFixture.class);

    final Scripts addedScripts = testClass.getAnnotation(Scripts.class);
    final ScriptsBefore addedScriptsBefore = testClass.getAnnotation(ScriptsBefore.class);
    final ScriptsAfter addedScriptsAfter = testClass.getAnnotation(ScriptsAfter.class);
    final Test test = meth.getMethod().getAnnotation(Test.class);

    StringBuilder resp = new StringBuilder(8192);
    resp.append("<html>\n");
    resp.append("<head>\n");
    appendScriptTag(resp, "/stjs.js");
    appendScriptTag(resp, "/junit.js");

    resp.append("<script language='javascript'>stjs.mainCallDisabled=true;</script>\n");

    // scripts added explicitly
    if (addedScripts != null) {
      for (String script : addedScripts.value()) {
        appendScriptTag(resp, script);
      }
    }
    // scripts before - new style
    if (addedScriptsBefore != null) {
View Full Code Here

TOP

Related Classes of org.stjs.testing.annotation.Scripts

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.