Search in sources :

Example 1 with TabbedOutputContainerLayoutManager

use of com.twosigma.beakerx.jvm.object.TabbedOutputContainerLayoutManager in project beakerx by twosigma.

the class TabbedOutputContainerLayoutManagerSerializerTest method setUp.

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

Example 2 with TabbedOutputContainerLayoutManager

use of com.twosigma.beakerx.jvm.object.TabbedOutputContainerLayoutManager in project beakerx by twosigma.

the class TabbedOutputContainerLayoutManagerDeserializerTest method deserialize_resultObjectHasBorderDisplayed.

@Test
public void deserialize_resultObjectHasBorderDisplayed() throws Exception {
    // given
    ObjectMapper mapper = new ObjectMapper();
    JsonNode actualObj = mapper.readTree(json);
    TabbedOutputContainerLayoutManagerDeserializer deserializer = new TabbedOutputContainerLayoutManagerDeserializer(new BasicObjectSerializer());
    // when
    TabbedOutputContainerLayoutManager layoutManager = (TabbedOutputContainerLayoutManager) deserializer.deserialize(actualObj, mapper);
    // then
    Assertions.assertThat(layoutManager).isNotNull();
    Assertions.assertThat(layoutManager.isBorderDisplayed()).isEqualTo(borderDisplayed);
}
Also used : TabbedOutputContainerLayoutManager(com.twosigma.beakerx.jvm.object.TabbedOutputContainerLayoutManager) JsonNode(com.fasterxml.jackson.databind.JsonNode) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) Test(org.junit.Test)

Aggregations

TabbedOutputContainerLayoutManager (com.twosigma.beakerx.jvm.object.TabbedOutputContainerLayoutManager)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 KernelTest (com.twosigma.beakerx.KernelTest)1 Before (org.junit.Before)1 Test (org.junit.Test)1