Search in sources :

Example 41 with KernelTest

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

the class CategoryPlotSerializerTest method initTestStubData.

@Before
public void initTestStubData() throws IOException {
    sw = new StringWriter();
    jgen = mapper.getJsonFactory().createJsonGenerator(sw);
    kernel = new KernelTest();
    KernelManager.register(kernel);
}
Also used : StringWriter(java.io.StringWriter) KernelTest(com.twosigma.beakerx.KernelTest) Before(org.junit.Before)

Example 42 with KernelTest

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

the class InteractiveTest method setUp.

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

Example 43 with KernelTest

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

the class HeatMapSerializerTest method initTestStubData.

@Before
public void initTestStubData() throws IOException {
    sw = new StringWriter();
    jgen = mapper.getJsonFactory().createJsonGenerator(sw);
    KernelManager.register(new KernelTest());
}
Also used : StringWriter(java.io.StringWriter) KernelTest(com.twosigma.beakerx.KernelTest) Before(org.junit.Before)

Example 44 with KernelTest

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

the class XYChartSerializerTest method initTestStubData.

@Before
public void initTestStubData() throws IOException {
    KernelManager.register(new KernelTest());
    sw = new StringWriter();
    jgen = mapper.getJsonFactory().createJsonGenerator(sw);
    plot = new Plot();
}
Also used : StringWriter(java.io.StringWriter) KernelTest(com.twosigma.beakerx.KernelTest) Plot(com.twosigma.beakerx.chart.xychart.Plot) Before(org.junit.Before)

Example 45 with KernelTest

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

the class ExecuteRequestHandlerMagicCommandTest method setUp.

@Before
public void setUp() {
    evaluator = new EvaluatorTest();
    kernel = new KernelTest("sid", evaluator);
    executeRequestHandler = new ExecuteRequestHandler(kernel);
}
Also used : KernelTest(com.twosigma.beakerx.KernelTest) ExecuteRequestHandler(com.twosigma.beakerx.kernel.handler.ExecuteRequestHandler) EvaluatorTest(com.twosigma.beakerx.evaluator.EvaluatorTest) Before(org.junit.Before)

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