Package org.tamacat.util.JavaScript_test

Examples of org.tamacat.util.JavaScript_test.JavaScript


  @Test
  public void testEvalMethod() throws ScriptException {
    Method method = ClassUtils.getMethod(JavaScriptUtilsTest.class, "execute", (Class<?>[]) null);
    ScriptEngineManager manager = new ScriptEngineManager();
        ScriptEngine engine = manager.getEngineByName("js");
    JavaScript script = method.getAnnotation(JavaScript.class);
    assertNull(engine.eval(script.value()));
  }
View Full Code Here


  }

  @Test
  public void testEvalJavaScript() throws ScriptException {
    Method method = ClassUtils.getMethod(JavaScriptUtilsTest.class, "execute", (Class<?>[]) null);
    JavaScript script = method.getAnnotation(JavaScript.class);
    assertNull(JavaScriptUtils.getScriptEngine().eval(script.value()));
  }
View Full Code Here

TOP

Related Classes of org.tamacat.util.JavaScript_test.JavaScript

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.