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();
}
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);
}
Aggregations