use of com.twosigma.beakerx.evaluator.BaseEvaluator in project beakerx by twosigma.
the class GroovyOutputContainerTest method setUp.
@Before
public void setUp() throws Exception {
BaseEvaluator evaluator = TestGroovyEvaluator.groovyEvaluator();
groovyKernel = new KernelTest("GroovyOutputContainerTest", evaluator);
groovyEvaluatorManager = new EvaluatorManager(groovyKernel, evaluator);
groovyEvaluatorManager.setShellOptions(new EvaluatorParameters(new HashMap()));
KernelManager.register(groovyKernel);
}
use of com.twosigma.beakerx.evaluator.BaseEvaluator in project beakerx by twosigma.
the class GroovyExamplesSetupTest method setUp.
@BeforeClass
public static void setUp() throws Exception {
String sessionId = "sessionIdWidget";
BaseEvaluator evaluator = TestGroovyEvaluator.groovyEvaluator();
kernelSocketsService = new KernelSocketsServiceTest();
kernel = new Groovy(sessionId, evaluator, kernelSocketsService, NO_ACTION, getCacheFolderFactory());
kernelThread = new Thread(() -> KernelRunner.run(() -> kernel));
kernelThread.start();
kernelSocketsService.waitForSockets();
}
Aggregations