Search in sources :

Example 1 with KernelSocketsServiceTest

use of com.twosigma.beakerx.KernelSocketsServiceTest 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

KernelSocketsServiceTest (com.twosigma.beakerx.KernelSocketsServiceTest)1 BaseEvaluator (com.twosigma.beakerx.evaluator.BaseEvaluator)1 Groovy (com.twosigma.beakerx.groovy.kernel.Groovy)1 BeforeClass (org.junit.BeforeClass)1