use of com.twosigma.beakerx.groovy.kernel.GroovyKernelMock in project beakerx by twosigma.
the class GroovyCommOpenHandlerTest method setUp.
@Before
public void setUp() {
kernel = new GroovyKernelMock();
commOpenHandler = new GroovyCommOpenHandler(kernel);
}
use of com.twosigma.beakerx.groovy.kernel.GroovyKernelMock in project beakerx by twosigma.
the class GroovyEvaluatorTest method initClassStubData.
@BeforeClass
public static void initClassStubData() throws IOException {
GroovyDefaultVariables var = new GroovyDefaultVariables();
HashMap<String, Object> params = new HashMap<>();
params.put(IMPORTS, var.getImports());
params.put(CLASSPATH, var.getClassPath());
EvaluatorParameters kernelParameters = new EvaluatorParameters(params);
GroovyEvaluator groovyEvaluator = new GroovyEvaluator("123", "345", cellExecutor(), getTestTempFolderFactory(), kernelParameters);
groovyEvaluator.setShellOptions(kernelParameters);
groovyClassLoader = newEvaluator(groovyEvaluator.getImports(), groovyEvaluator.getClasspath(), groovyEvaluator.getOutDir(), icz, newParentClassLoader(groovyEvaluator.getClasspath()));
scriptBinding = new Binding();
scriptBinding.setVariable("beaker", NamespaceClient.getBeaker("345"));
groovyKernel = new GroovyKernelMock("groovyEvaluatorTest", groovyEvaluator);
KernelManager.register(groovyKernel);
}
use of com.twosigma.beakerx.groovy.kernel.GroovyKernelMock in project beakerx by twosigma.
the class GroovyCompleteHandlerTest method setUpClass.
@BeforeClass
public static void setUpClass() {
GroovyEvaluator groovyEvaluator = new GroovyEvaluator("id", "sid", cellExecutor(), EvaluatorTest.getTestTempFolderFactory(), new EvaluatorParameters(new HashedMap()));
groovyKernel = new GroovyKernelMock("sid", groovyEvaluator);
}
use of com.twosigma.beakerx.groovy.kernel.GroovyKernelMock in project beakerx by twosigma.
the class GroovyKernelInfoHandlerTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
kernel = new GroovyKernelMock();
handler = new GroovyKernelInfoHandler(kernel);
}
Aggregations