Package net.grinder.engine.process

Examples of net.grinder.engine.process.JUnitThreadContextInitializer.initialize()


  @Test
  public void testRunGroovyScript() throws EngineException, NoSuchFieldException, IllegalAccessException {

    JUnitThreadContextInitializer init = new JUnitThreadContextInitializer();
    init.initialize();

    // for test, used to get groovy source file.
    String file = getClass().getClassLoader().getResource("org/ngrinder/TestRunner.groovy").getFile();
    GroovyScriptEngine engine = new GroovyScriptEngine(new ScriptLocation(new File(file).getAbsoluteFile()));
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.