use of com.twosigma.beakerx.jvm.object.CyclingOutputContainerLayoutManager in project beakerx by twosigma.
the class CyclingOutputContainerLayoutManagerSerializerTest method setUp.
@Before
public void setUp() throws Exception {
KernelManager.register(new KernelTest());
layoutManager = new CyclingOutputContainerLayoutManager();
}
use of com.twosigma.beakerx.jvm.object.CyclingOutputContainerLayoutManager in project beakerx by twosigma.
the class CyclingOutputContainerLayoutManagerDeserializerTest method deserialize_resultObjectHasPeriod.
@Test
public void deserialize_resultObjectHasPeriod() throws Exception {
// given
ObjectMapper mapper = new ObjectMapper();
JsonNode actualObj = mapper.readTree(json);
CyclingOutputContainerLayoutManagerDeserializer deserializer = new CyclingOutputContainerLayoutManagerDeserializer(new BasicObjectSerializer());
// when
CyclingOutputContainerLayoutManager layoutManager = (CyclingOutputContainerLayoutManager) deserializer.deserialize(actualObj, mapper);
// then
Assertions.assertThat(layoutManager).isNotNull();
Assertions.assertThat(layoutManager.getPeriod()).isEqualTo(period);
}
Aggregations