use of com.twosigma.beakerx.jvm.object.SimpleLayoutManager in project beakerx by twosigma.
the class OutputContainerCellSerializerTest method serializeLayoutManager_resultJsonHasLayoutManager.
@Test
public void serializeLayoutManager_resultJsonHasLayoutManager() throws IOException {
// given
outputContainerCell.setLayoutManager(new SimpleLayoutManager());
// when
JsonNode actualObj = helper.serializeObject(outputContainerCell);
// then
Assertions.assertThat(actualObj.has("layout")).isTrue();
}
use of com.twosigma.beakerx.jvm.object.SimpleLayoutManager in project beakerx by twosigma.
the class SimpleLayoutManagerDeserializerTest method deserialize_resultObjectHasBorderDisplayed.
@Test
public void deserialize_resultObjectHasBorderDisplayed() throws Exception {
// given
ObjectMapper mapper = new ObjectMapper();
JsonNode actualObj = mapper.readTree(json);
SimpleLayoutManagerDeserializer deserializer = new SimpleLayoutManagerDeserializer(new BasicObjectSerializer());
// when
SimpleLayoutManager layoutManager = (SimpleLayoutManager) deserializer.deserialize(actualObj, mapper);
// then
Assertions.assertThat(layoutManager).isNotNull();
Assertions.assertThat(layoutManager.isBorderDisplayed()).isEqualTo(borderDisplayed);
}
use of com.twosigma.beakerx.jvm.object.SimpleLayoutManager in project beakerx by twosigma.
the class SimpleLayoutManagerSerializerTest method setUp.
@Before
public void setUp() throws Exception {
KernelManager.register(new KernelTest());
layoutManager = new SimpleLayoutManager();
}
Aggregations