Search in sources :

Example 31 with KernelTest

use of com.twosigma.beakerx.KernelTest in project beakerx by twosigma.

the class PlayTest method setUp.

@Before
public void setUp() throws Exception {
    groovyKernel = new KernelTest();
    KernelManager.register(groovyKernel);
}
Also used : KernelTest(com.twosigma.beakerx.KernelTest) Before(org.junit.Before)

Example 32 with KernelTest

use of com.twosigma.beakerx.KernelTest in project beakerx by twosigma.

the class DirectionalLinkTest method setUp.

@Before
public void setUp() throws Exception {
    kernel = new KernelTest();
    KernelManager.register(kernel);
}
Also used : KernelTest(com.twosigma.beakerx.KernelTest) Before(org.junit.Before)

Example 33 with KernelTest

use of com.twosigma.beakerx.KernelTest in project beakerx by twosigma.

the class CommOpenHandlerTest method setUp.

@Before
public void setUp() {
    kernel = new KernelTest();
    commOpenHandler = new CommOpenHandler(kernel) {

        @Override
        public Handler<Message>[] getKernelControlChanelHandlers(String targetName) {
            return (Handler<Message>[]) new Handler<?>[0];
        }
    };
    message = JupyterHandlerTest.initOpenMessage();
}
Also used : Message(com.twosigma.beakerx.message.Message) KernelTest(com.twosigma.beakerx.KernelTest) CommOpenHandler(com.twosigma.beakerx.kernel.handler.CommOpenHandler) Handler(com.twosigma.beakerx.handler.Handler) CommOpenHandler(com.twosigma.beakerx.kernel.handler.CommOpenHandler) Before(org.junit.Before)

Example 34 with KernelTest

use of com.twosigma.beakerx.KernelTest in project beakerx by twosigma.

the class ExecuteRequestHandlerTest method setUpClass.

@BeforeClass
public static void setUpClass() {
    evaluatorTest = new EvaluatorTest();
    kernel = new KernelTest("sid", evaluatorTest) {

        @Override
        public void publish(List<Message> message) {
            super.publish(message.stream().map(ExecuteRequestHandlerTest::copyMessage).collect(Collectors.toList()));
        }
    };
}
Also used : EvaluatorResultTestWatcher.waitForIdleMessage(com.twosigma.beakerx.evaluator.EvaluatorResultTestWatcher.waitForIdleMessage) Message(com.twosigma.beakerx.message.Message) EvaluatorResultTestWatcher.waitForErrorMessage(com.twosigma.beakerx.evaluator.EvaluatorResultTestWatcher.waitForErrorMessage) KernelTest(com.twosigma.beakerx.KernelTest) EvaluatorTest(com.twosigma.beakerx.evaluator.EvaluatorTest) BeforeClass(org.junit.BeforeClass)

Example 35 with KernelTest

use of com.twosigma.beakerx.KernelTest in project beakerx by twosigma.

the class CodeTest method setUp.

@BeforeClass
public static void setUp() {
    evaluator = new EvaluatorTest();
    kernel = new KernelTest("id2", evaluator);
}
Also used : KernelTest(com.twosigma.beakerx.KernelTest) EvaluatorTest(com.twosigma.beakerx.evaluator.EvaluatorTest) BeforeClass(org.junit.BeforeClass)

Aggregations

KernelTest (com.twosigma.beakerx.KernelTest)115 Before (org.junit.Before)110 StringWriter (java.io.StringWriter)15 EvaluatorTest (com.twosigma.beakerx.evaluator.EvaluatorTest)13 BeforeClass (org.junit.BeforeClass)4 Message (com.twosigma.beakerx.message.Message)3 TreeMap (com.twosigma.beakerx.chart.treemap.TreeMap)2 CommMsgHandler (com.twosigma.beakerx.kernel.handler.CommMsgHandler)2 SQLEvaluator (com.twosigma.beakerx.sql.evaluator.SQLEvaluator)2 DefaultValue (net.sf.jtreemap.swing.DefaultValue)2 TreeMapNode (net.sf.jtreemap.swing.TreeMapNode)2 CodeCell (com.twosigma.beakerx.CodeCell)1 Histogram (com.twosigma.beakerx.chart.histogram.Histogram)1 Plot (com.twosigma.beakerx.chart.xychart.Plot)1 Bars (com.twosigma.beakerx.chart.xychart.plotitem.Bars)1 BaseEvaluator (com.twosigma.beakerx.evaluator.BaseEvaluator)1 EvaluatorManager (com.twosigma.beakerx.evaluator.EvaluatorManager)1 EvaluatorResultTestWatcher.waitForErrorMessage (com.twosigma.beakerx.evaluator.EvaluatorResultTestWatcher.waitForErrorMessage)1 EvaluatorResultTestWatcher.waitForIdleMessage (com.twosigma.beakerx.evaluator.EvaluatorResultTestWatcher.waitForIdleMessage)1 Handler (com.twosigma.beakerx.handler.Handler)1