Search in sources :

Example 1 with CommOpenHandler

use of com.twosigma.beakerx.kernel.handler.CommOpenHandler 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 2 with CommOpenHandler

use of com.twosigma.beakerx.kernel.handler.CommOpenHandler in project beakerx by twosigma.

the class JupyterHandlerTest method setUp.

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

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

Aggregations

Handler (com.twosigma.beakerx.handler.Handler)2 CommOpenHandler (com.twosigma.beakerx.kernel.handler.CommOpenHandler)2 Message (com.twosigma.beakerx.message.Message)2 Before (org.junit.Before)2 KernelTest (com.twosigma.beakerx.KernelTest)1 CommCloseHandler (com.twosigma.beakerx.kernel.handler.CommCloseHandler)1 CommInfoHandler (com.twosigma.beakerx.kernel.handler.CommInfoHandler)1 CommMsgHandler (com.twosigma.beakerx.kernel.handler.CommMsgHandler)1