Search in sources :

Example 1 with BaseEvaluator

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);
}
Also used : EvaluatorParameters(com.twosigma.beakerx.kernel.EvaluatorParameters) KernelTest(com.twosigma.beakerx.KernelTest) HashMap(java.util.HashMap) EvaluatorManager(com.twosigma.beakerx.evaluator.EvaluatorManager) BaseEvaluator(com.twosigma.beakerx.evaluator.BaseEvaluator) Before(org.junit.Before)

Example 2 with BaseEvaluator

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();
}
Also used : KernelSocketsServiceTest(com.twosigma.beakerx.KernelSocketsServiceTest) Groovy(com.twosigma.beakerx.groovy.kernel.Groovy) BaseEvaluator(com.twosigma.beakerx.evaluator.BaseEvaluator) BeforeClass(org.junit.BeforeClass)

Aggregations

BaseEvaluator (com.twosigma.beakerx.evaluator.BaseEvaluator)2 KernelSocketsServiceTest (com.twosigma.beakerx.KernelSocketsServiceTest)1 KernelTest (com.twosigma.beakerx.KernelTest)1 EvaluatorManager (com.twosigma.beakerx.evaluator.EvaluatorManager)1 Groovy (com.twosigma.beakerx.groovy.kernel.Groovy)1 EvaluatorParameters (com.twosigma.beakerx.kernel.EvaluatorParameters)1 HashMap (java.util.HashMap)1 Before (org.junit.Before)1 BeforeClass (org.junit.BeforeClass)1