target stringlengths 20 113k | src_fm stringlengths 11 86.3k | src_fm_fc stringlengths 21 86.4k | src_fm_fc_co stringlengths 30 86.4k | src_fm_fc_ms stringlengths 42 86.8k | src_fm_fc_ms_ff stringlengths 43 86.8k |
|---|---|---|---|---|---|
@Test public void serializeYAxisConstantLine_resultJsonHasYAxis() throws IOException { ConstantLine constantLine = new ConstantLine(); constantLine.setyAxis("Y Axis name"); constantLineSerializer.serialize(constantLine, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.t... | @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObjectField("type", constantLine.getClass().getSimpleName()); jge... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... |
@Test public void serializeShowLabelConstantLine_resultJsonHasShowLabel() throws IOException { ConstantLine constantLine = new ConstantLine(); constantLine.setShowLabel(true); constantLineSerializer.serialize(constantLine, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(s... | @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObjectField("type", constantLine.getClass().getSimpleName()); jge... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... |
@Test public void serializeWidthConstantLine_resultJsonHasWidth() throws IOException { ConstantLine constantLine = new ConstantLine(); constantLine.setWidth(2f); constantLineSerializer.serialize(constantLine, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString());... | @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObjectField("type", constantLine.getClass().getSimpleName()); jge... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... |
@Test public void serializeStyleConstantLine_resultJsonHasStyle() throws IOException { ConstantLine constantLine = new ConstantLine(); constantLine.setStyle(StrokeType.SOLID); constantLineSerializer.serialize(constantLine, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(s... | @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObjectField("type", constantLine.getClass().getSimpleName()); jge... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... |
@Test public void serializeColorConstantLine_resultJsonHasColor() throws IOException { ConstantLine constantLine = new ConstantLine(); constantLine.setColor(Color.GREEN); constantLineSerializer.serialize(constantLine, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toS... | @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObjectField("type", constantLine.getClass().getSimpleName()); jge... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... | ConstantLineSerializer extends JsonSerializer<ConstantLine> { @Override public void serialize(ConstantLine constantLine, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantLine.getPlotType()); jgen.writeObj... |
@Test public void serializeGraphicsListOfTreeMap_resultJsonHasGraphicsList() throws IOException { treeMapSerializer.serialize(treeMap, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("graphics_list")).isTrue(); } | @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapNode node) { Object userObject = node.getUserObject();... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... |
@Test public void serializeModeOfTreeMap_resultJsonHasMode() throws IOException { treeMap.setMode(Mode.DICE); treeMapSerializer.serialize(treeMap, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("mode")).isTrue(); Assert... | @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapNode node) { Object userObject = node.getUserObject();... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... |
@Test public void serializeStickyOfTreeMap_resultJsonHasSticky() throws IOException { treeMap.setSticky(true); treeMapSerializer.serialize(treeMap, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("sticky")).isTrue(); Ass... | @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapNode node) { Object userObject = node.getUserObject();... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... |
@Test public void handle_sentMessageHasHeaderTypeIsCompleteReply() throws Exception { completeHandler.handle(message); Header header = kernel.getSentMessages().get(0).getHeader(); Assertions.assertThat(header).isNotNull(); Assertions.assertThat(header.getType()).isEqualTo(COMPLETE_REPLY.getName()); } | @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); @Override void handle(Message message); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); @Override void handle(Message message); static final String STATUS; static final String MATCHES; static final Stri... |
@Test public void serializeRatioOfTreeMap_resultJsonHasRatio() throws IOException { treeMap.setRatio(2.0); treeMapSerializer.serialize(treeMap, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("ratio")).isTrue(); Assertio... | @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapNode node) { Object userObject = node.getUserObject();... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... |
@Test public void serializeRoundOfTreeMap_resultJsonHasRound() throws IOException { treeMap.setRound(true); treeMapSerializer.serialize(treeMap, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("round")).isTrue(); Asserti... | @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapNode node) { Object userObject = node.getUserObject();... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... |
@Test public void serializeValueAccessorOfTreeMap_resultJsonHasValueAccessor() throws IOException { treeMap.setValueAccessor(ValueAccessor.WEIGHT); treeMapSerializer.serialize(treeMap, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(a... | @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapNode node) { Object userObject = node.getUserObject();... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... | TreeMapSerializer extends ChartSerializer<TreeMap> { @Override public void serialize(final TreeMap treeMap, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { TreeMapNode root = treeMap.getRoot(); process(root, new Visitor<TreeMapNode>() { @Override public void visit(TreeMapN... |
@Test public void serializeXOfXYGraphicsLine_resultJsonHasX() throws IOException { line.setX(Arrays.asList(1, 2, 3)); xyGraphicsSerializer.serialize(line, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("x")).isTrue(); A... | @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("x", isNanoPlot ? processLargeNumbers(xyGraphics.getX(... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... |
@Test public void serializeBigIntXWithNanoPlotType_resultJsonHasStringX() throws IOException { line.setX( Arrays.asList( new BigInteger("12345678901234567891000"), new BigInteger("12345678901234567891000"))); line.setPlotType(NanoPlot.class); xyGraphicsSerializer.serialize(line, jgen, new DefaultSerializerProvider.Impl... | @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("x", isNanoPlot ? processLargeNumbers(xyGraphics.getX(... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... |
@Test public void serializeYOfXYGraphicsLine_resultJsonHasY() throws IOException { line.setY(Arrays.asList(1, 2, 3)); xyGraphicsSerializer.serialize(line, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("y")).isTrue(); A... | @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("x", isNanoPlot ? processLargeNumbers(xyGraphics.getX(... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... |
@Test public void serializeDisplayNameOfXYGraphicsLine_resultJsonHasDisplayName() throws IOException { line.setDisplayName("some display name"); xyGraphicsSerializer.serialize(line, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actu... | @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("x", isNanoPlot ? processLargeNumbers(xyGraphics.getX(... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... |
@Test public void serializeLodFilterOfXYGraphicsLine_resultJsonHasLodFilter() throws IOException { line.setLodFilter(Filter.LINE); xyGraphicsSerializer.serialize(line, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("lod... | @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("x", isNanoPlot ? processLargeNumbers(xyGraphics.getX(... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... |
@Test public void serializeTooltipsOfXYGraphicsLine_resultJsonHastooltips() throws IOException { line.setToolTip(Arrays.asList("one", "two")); xyGraphicsSerializer.serialize(line, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actual... | @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("x", isNanoPlot ? processLargeNumbers(xyGraphics.getX(... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... | XYGraphicsSerializer extends GraphicsSerializer<T> { @Override public void serialize(T xyGraphics, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { super.serialize(xyGraphics, jgen, sp); boolean isNanoPlot = NanoPlot.class.equals(xyGraphics.getPlotType()); jgen.writeObjectField("... |
@Test public void serializeWidthCategoryLines_resultJsonHasWidth() throws IOException { CategoryLines categoryLines = new CategoryLines(); categoryLines.setWidth(11f); categoryLinesSerializer.serialize(categoryLines, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toSt... | @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLines.getWidth() != null) { jgen.writeObjectField("width", categoryLines.getWid... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... |
@Test public void handle_messageContentHasCursorStartAndEndFields() throws Exception { completeHandler.handle(message); Map<String, Serializable> content = kernel.getSentMessages().get(0).getContent(); Assertions.assertThat(content.get(CompleteHandler.CURSOR_START)).isNotNull(); Assertions.assertThat(content.get(Comple... | @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); @Override void handle(Message message); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); @Override void handle(Message message); static final String STATUS; static final String MATCHES; static final Stri... |
@Test public void serializeStrokeTypeStems_resultJsonHasStyle() throws IOException { CategoryLines categoryLines = new CategoryLines(); categoryLines.setStyle(StrokeType.SOLID); categoryLinesSerializer.serialize(categoryLines, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTr... | @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLines.getWidth() != null) { jgen.writeObjectField("width", categoryLines.getWid... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... |
@Test public void serializeStrokeTypeListStems_resultJsonHasStyles() throws IOException { CategoryLines categoryLines = new CategoryLines(); categoryLines.setStyle(Arrays.asList(StrokeType.SOLID, StrokeType.DASHDOT)); categoryLinesSerializer.serialize(categoryLines, jgen, new DefaultSerializerProvider.Impl()); jgen.flu... | @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLines.getWidth() != null) { jgen.writeObjectField("width", categoryLines.getWid... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... |
@Test public void serializeInterpolationCategoryLines_resultJsonHasInterpolation() throws IOException { CategoryLines categoryLines = new CategoryLines(); categoryLines.setInterpolation(1); categoryLinesSerializer.serialize(categoryLines, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = m... | @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLines.getWidth() != null) { jgen.writeObjectField("width", categoryLines.getWid... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... | CategoryLinesSerializer extends CategoryGraphicsSerializer<CategoryLines> { @Override public void serialize(CategoryLines categoryLines, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(categoryLines, jgen, provider); if (categoryLin... |
@Test public void serializeGraphicsOfXYChartPlot_resultJsonHasGraphicsList() throws IOException { Line line = new Line(); line.setX(Arrays.asList(1, 2, 3)); line.setY(Arrays.asList(2, 3, 4)); plot.add(line); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj ... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeConstantLinesOfXYChartPlot_resultJsonHasConstantLines() throws IOException { ConstantLine constantLine = new ConstantLine(); plot.add(constantLine); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString())... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeConstantBandsOfXYChartPlot_resultJsonHasConstantBands() throws IOException { ConstantBand constantBand = new ConstantBand(); plot.add(constantBand); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString())... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeTextsOfXYChartPlot_resultJsonHasTexts() throws IOException { plot.add(new Text()); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("texts")).isTrue(); Assertio... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeXAutoRangeOfXYChartPlot_resultJsonHasXAutoRange() throws IOException { plot.setXAutoRange(true); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("x_auto_range"... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeXLowerBoundOfXYChartPlot_resultJsonHasXLowerBound() throws IOException { plot.setXBound(0.5, 1.5); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("x_lower_bou... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeXUpperBoundOfXYChartPlot_resultJsonHasXUpperBound() throws IOException { plot.setXBound(0.5, 1.5); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("x_upper_bou... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void handle_messageContentHasMatchesField() throws Exception { completeHandler.handle(message); Map<String, Serializable> content = kernel.getSentMessages().get(0).getContent(); Assertions.assertThat(content.get(CompleteHandler.MATCHES)).isNotNull(); } | @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); @Override void handle(Message message); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); @Override void handle(Message message); static final String STATUS; static final String MATCHES; static final Stri... |
@Test public void serializeLogXOfXYChartPlot_resultJsonHasLogX() throws IOException { plot.setLogX(true); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("log_x")).isTrue(); Assertions.a... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeXLogBaseOfXYChartPlot_resultJsonHasXLogBase() throws IOException { plot.setxLogBase(1.5); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("x_log_base")).isTrue... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeLodThresholdOfXYChartPlot_resultJsonHasLodThreshold() throws IOException { plot.setLodThreshold(11); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("lodThresh... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeXTickLabelsVisibleOfXYChartPlot_resultJsonHasXTickLabelsVisible() throws IOException { plot.setxTickLabelsVisible(true); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actu... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeYTickLabelsVisibleOfXYChartPlot_resultJsonHasYTickLabelsVisible() throws IOException { plot.setyTickLabelsVisible(true); xyChartSerializer.serialize(plot, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actu... | @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writeObjectField("constant_lines", xychart.getConstantLines()); j... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... | XYChartSerializer extends AbstractChartSerializer<XYChart> { @Override public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); serialize(xychart, jgen); jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics()); jgen.writ... |
@Test public void serializeText_resultJsonHasType() throws IOException { textSerializer.serialize(text, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("type")).isTrue(); Assertions.assertThat(actualObj.get("type").asTex... | @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimpleName()); jgen.writeObjectField("x", isNanoPl... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... |
@Test public void serializeXText_resultJsonHasX() throws IOException { text.setX(new Integer(11)); textSerializer.serialize(text, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("x")).isTrue(); Assertions.assertThat(actu... | @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimpleName()); jgen.writeObjectField("x", isNanoPl... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... |
@Test public void serializeBigIntXWithNanoPlotType_resultJsonHasStringX() throws IOException { text.setX(new BigInteger("12345678901234567891000")); text.setPlotType(NanoPlot.class); textSerializer.serialize(text, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toStrin... | @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimpleName()); jgen.writeObjectField("x", isNanoPl... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... |
@Test public void serializeYText_resultJsonHasY() throws IOException { text.setY(new Integer(22)); textSerializer.serialize(text, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("y")).isTrue(); Assertions.assertThat(actu... | @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimpleName()); jgen.writeObjectField("x", isNanoPl... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... |
@Test public void serializeShowPointerText_resultJsonHasShowPointer() throws IOException { text.setShowPointer(true); textSerializer.serialize(text, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("show_pointer")).isTrue... | @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimpleName()); jgen.writeObjectField("x", isNanoPl... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... |
@Test public void handle_messageContentHasStatus() throws Exception { completeHandler.handle(message); Map<String, Serializable> content = kernel.getSentMessages().get(0).getContent(); Assertions.assertThat(content.get(CompleteHandler.STATUS)).isNotNull(); } | @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); @Override void handle(Message message); } | CompleteHandler extends KernelHandler<Message> { @Override public void handle(Message message) { wrapBusyIdle(kernel, message, () -> { handleMsg(message); }); } CompleteHandler(KernelFunctionality kernel); @Override void handle(Message message); static final String STATUS; static final String MATCHES; static final Stri... |
@Test public void serializeTextOfText_resultJsonHasText() throws IOException { text.setText("some text"); textSerializer.serialize(text, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("text")).isTrue(); Assertions.asser... | @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimpleName()); jgen.writeObjectField("x", isNanoPl... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... |
@Test public void serializePointerAngleOfText_resultJsonHasPointerAngle() throws IOException { text.setPointerAngle(0.5); textSerializer.serialize(text, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("pointer_angle")).i... | @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimpleName()); jgen.writeObjectField("x", isNanoPl... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... |
@Test public void serializeColorOfText_resultJsonHasColor() throws IOException { text.setColor(Color.GREEN); textSerializer.serialize(text, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("color")).isTrue(); Assertions.a... | @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimpleName()); jgen.writeObjectField("x", isNanoPl... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... |
@Test public void serializeSizeOfText_resultJsonHasSize() throws IOException { text.setSize(11); textSerializer.serialize(text, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("size")).isTrue(); Assertions.assertThat(act... | @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimpleName()); jgen.writeObjectField("x", isNanoPl... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... | TextSerializer extends JsonSerializer<Text> { @Override public void serialize(Text text, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { boolean isNanoPlot = NanoPlot.class.equals(text.getPlotType()); jgen.writeStartObject(); jgen.writeObjectField("type", text.getClass().getSimp... |
@Test public void serializeWidthBars_resultJsonHasWidth() throws IOException { Bars bars = new Bars(); bars.setWidth(11); barsSerializer.serialize(bars, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("width")).isTrue();... | @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getWidths()); } else { jgen.writeObjectField("width", bars.ge... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... |
@Test public void serializeWidthsBars_resultJsonHasWidths() throws IOException { Bars bars = new Bars(); bars.setWidth(Arrays.asList(11, 22, 33)); barsSerializer.serialize(bars, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualOb... | @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getWidths()); } else { jgen.writeObjectField("width", bars.ge... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... |
@Test public void serializeColorBars_resultJsonHasColor() throws IOException { Bars bars = new Bars(); bars.setColor(Color.GREEN); barsSerializer.serialize(bars, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("color")).... | @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getWidths()); } else { jgen.writeObjectField("width", bars.ge... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... |
@Test public void serializeColorsBars_resultJsonHasColors() throws IOException { Bars bars = new Bars(); bars.setColor(Arrays.asList(Color.BLUE, Color.GREEN, Color.BLACK)); barsSerializer.serialize(bars, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Asse... | @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getWidths()); } else { jgen.writeObjectField("width", bars.ge... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... |
@Test public void serializeOutlineColorBars_resultJsonHasOutlineColor() throws IOException { Bars bars = new Bars(); bars.setOutlineColor(Color.GREEN); barsSerializer.serialize(bars, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(act... | @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getWidths()); } else { jgen.writeObjectField("width", bars.ge... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... |
@Test public void serializeOutlineColorsBars_resultJsonHasOutlineColors() throws IOException { Bars bars = new Bars(); bars.setOutlineColor(Arrays.asList(Color.BLUE, Color.GREEN, Color.BLACK)); barsSerializer.serialize(bars, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree... | @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getWidths()); } else { jgen.writeObjectField("width", bars.ge... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... | BarsSerializer extends BasedXYGraphicsSerializer<Bars> { @Override public void serialize(Bars bars, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); super.serialize(bars, jgen, sp); if (bars.getWidths() != null) { jgen.writeObjectField("widths", bars.getW... |
@Test public void shouldAddMapToOutputContainerTest() throws Exception { List<Map<String, Object>> values = ResourceLoaderTest.readAsList("tableRowsTest.csv"); OutputContainer oc = new OutputContainer(); oc.leftShift(values.get(0)); DisplayOutputContainer.display(oc); verifyMap(groovyKernel.getPublishedMessages()); } | public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, container.getLabels()); tab.disp... | DisplayOutputContainer { public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, contain... | DisplayOutputContainer { public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, contain... | DisplayOutputContainer { public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, contain... | DisplayOutputContainer { public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, contain... |
@Test public void handle_sentMessageHasContent() throws Exception { handler.handle(message); Message sentMessage = kernel.getSentMessages().get(0); Assertions.assertThat(sentMessage.getContent()).isNotEmpty(); } | @Override public void handle(Message message) { logger.debug("Processing kernel info request"); Message reply = new Message(); HashMap<String, Serializable> map = new HashMap<>(6); map.put("protocol_version", "5.0"); map.put("implementation", "java"); map.put("implementation_version", "1.0.0"); HashMap<String, Serializ... | JavaKernelInfoHandler extends KernelHandler<Message> { @Override public void handle(Message message) { logger.debug("Processing kernel info request"); Message reply = new Message(); HashMap<String, Serializable> map = new HashMap<>(6); map.put("protocol_version", "5.0"); map.put("implementation", "java"); map.put("impl... | JavaKernelInfoHandler extends KernelHandler<Message> { @Override public void handle(Message message) { logger.debug("Processing kernel info request"); Message reply = new Message(); HashMap<String, Serializable> map = new HashMap<>(6); map.put("protocol_version", "5.0"); map.put("implementation", "java"); map.put("impl... | JavaKernelInfoHandler extends KernelHandler<Message> { @Override public void handle(Message message) { logger.debug("Processing kernel info request"); Message reply = new Message(); HashMap<String, Serializable> map = new HashMap<>(6); map.put("protocol_version", "5.0"); map.put("implementation", "java"); map.put("impl... | JavaKernelInfoHandler extends KernelHandler<Message> { @Override public void handle(Message message) { logger.debug("Processing kernel info request"); Message reply = new Message(); HashMap<String, Serializable> map = new HashMap<>(6); map.put("protocol_version", "5.0"); map.put("implementation", "java"); map.put("impl... |
@Test public void serializeGradientColor_resultJsonHasGradientColor() throws IOException { GradientColor gradientColor = new GradientColor(Arrays.asList(Color.GREEN, Color.BLUE)); gradientColorSerializer.serialize(gradientColor, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); ArrayNode arrayNode = (ArrayNode... | @Override public void serialize(GradientColor gradientColor, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeObject(gradientColor.getColors()); } | GradientColorSerializer extends JsonSerializer<GradientColor> { @Override public void serialize(GradientColor gradientColor, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeObject(gradientColor.getColors()); } } | GradientColorSerializer extends JsonSerializer<GradientColor> { @Override public void serialize(GradientColor gradientColor, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeObject(gradientColor.getColors()); } } | GradientColorSerializer extends JsonSerializer<GradientColor> { @Override public void serialize(GradientColor gradientColor, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeObject(gradientColor.getColors()); } @Override void serialize(GradientColor gradientColor, Json... | GradientColorSerializer extends JsonSerializer<GradientColor> { @Override public void serialize(GradientColor gradientColor, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeObject(gradientColor.getColors()); } @Override void serialize(GradientColor gradientColor, Json... |
@Test public void serializeConstantBand_resultJsonHasType() throws IOException { ConstantBand constantBand = new ConstantBand(); constantBandSerializer.serialize(constantBand, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.... | @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObjectField("type", constantBand.getClass().getSimpleName()); jge... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... |
@Test public void serializeXConstantBand_resultJsonHasX() throws IOException { ConstantBand constantBand = new ConstantBand(); constantBand.setX(Arrays.asList(1, 2, 3)); constantBandSerializer.serialize(constantBand, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toSt... | @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObjectField("type", constantBand.getClass().getSimpleName()); jge... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... |
@Test public void serializeBigIntXWithNanoPlotType_resultJsonHasStringXs() throws IOException { ConstantBand constantBand = new ConstantBand(); constantBand.setX( Arrays.asList( new BigInteger("12345678901234567891000"), new BigInteger("12345678901234567892000"))); constantBand.setPlotType(NanoPlot.class); constantBand... | @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObjectField("type", constantBand.getClass().getSimpleName()); jge... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... |
@Test public void serializeYConstantBand_resultJsonHasY() throws IOException { ConstantBand constantBand = new ConstantBand(); constantBand.setY(Arrays.asList(1, 2, 3)); constantBandSerializer.serialize(constantBand, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toSt... | @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObjectField("type", constantBand.getClass().getSimpleName()); jge... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... |
@Test public void serializeVisibleConstantBand_resultJsonHasVisible() throws IOException { ConstantBand constantBand = new ConstantBand(); constantBand.setVisible(true); constantBandSerializer.serialize(constantBand, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toSt... | @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObjectField("type", constantBand.getClass().getSimpleName()); jge... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... |
@Test public void serializeYAxisConstantBand_resultJsonHasYAxis() throws IOException { ConstantBand constantBand = new ConstantBand(); constantBand.setyAxis("Y Axis name"); constantBandSerializer.serialize(constantBand, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.t... | @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObjectField("type", constantBand.getClass().getSimpleName()); jge... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... |
@Test public void serializeColorConstantBand_resultJsonHasColor() throws IOException { ConstantBand constantBand = new ConstantBand(); constantBand.setColor(Color.GREEN); constantBandSerializer.serialize(constantBand, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toS... | @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObjectField("type", constantBand.getClass().getSimpleName()); jge... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... | ConstantBandSerializer extends JsonSerializer<ConstantBand> { @Override public void serialize(ConstantBand constantBand, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); boolean isNanoPlot = NanoPlot.class.equals(constantBand.getPlotType()); jgen.writeObj... |
@Test public void serializeLegendPosition_resultJsonHasType() throws IOException { legendPositionSerializer.serialize(legendPosition, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); Assertions.assertThat(actualObj.has("type")).isTrue(); Assertions.assertTh... | @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if (legendPosition.getPosition() != null) { jgen.writeObjectField("po... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... |
@Test public void serializePositionOfLegendPosition_resultJsonHasPosition() throws IOException { legendPosition.setPosition(LegendPosition.Position.LEFT); legendPositionSerializer.serialize(legendPosition, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); As... | @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if (legendPosition.getPosition() != null) { jgen.writeObjectField("po... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... |
@Test public void shouldDisplayOutputContainerWithTabLayoutTest() throws Exception { List<Map<String, Object>> values = ResourceLoaderTest.readAsList("tableRowsTest.csv"); OutputContainer oc = new OutputContainer(); SimpleTimePlot simpleTimePlot = new SimpleTimePlot(values, Arrays.asList("m3", "y1")); oc.setLayoutManag... | public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, container.getLabels()); tab.disp... | DisplayOutputContainer { public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, contain... | DisplayOutputContainer { public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, contain... | DisplayOutputContainer { public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, contain... | DisplayOutputContainer { public static void display(OutputContainer container) { if (container.getLayoutManager() instanceof TabbedOutputContainerLayoutManager) { List<CommFunctionality> items = container.getItems().stream().map(x -> toCommFunctionality(x)).collect(Collectors.toList()); Tab tab = new Tab(items, contain... |
@Test public void serializeXLegendPosition_resultJsonHasX() throws IOException { LegendPosition legendPositionX = new LegendPosition(new int[] {11, 22}); legendPositionSerializer.serialize(legendPositionX, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); As... | @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if (legendPosition.getPosition() != null) { jgen.writeObjectField("po... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... |
@Test public void serializeYLegendPosition_resultJsonHasY() throws IOException { LegendPosition legendPositionY = new LegendPosition(new int[] {11, 22}); legendPositionSerializer.serialize(legendPositionY, jgen, new DefaultSerializerProvider.Impl()); jgen.flush(); JsonNode actualObj = mapper.readTree(sw.toString()); As... | @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if (legendPosition.getPosition() != null) { jgen.writeObjectField("po... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... | LegendPositionSerializer extends JsonSerializer<LegendPosition> { @Override public void serialize(LegendPosition legendPosition, JsonGenerator jgen, SerializerProvider sp) throws IOException, JsonProcessingException { jgen.writeStartObject(); jgen.writeObjectField("type", legendPosition.getClass().getSimpleName()); if ... |
@Test public void createGradientColorWithArrayBeakerColorParam_hasArrayBeakerColorsIsNotEmpty() { GradientColor gradientColor = new GradientColor(new Color[] {Color.black, Color.blue}); Assertions.assertThat(gradientColor.getColors()[0] instanceof Color).isTrue(); Assertions.assertThat(gradientColor.getColors()[1] inst... | public Color[] getColors() { return colors; } | GradientColor implements Serializable { public Color[] getColors() { return colors; } } | GradientColor implements Serializable { public Color[] getColors() { return colors; } protected GradientColor(Color[] colors); GradientColor(List<Object> colors); } | GradientColor implements Serializable { public Color[] getColors() { return colors; } protected GradientColor(Color[] colors); GradientColor(List<Object> colors); Color[] getColors(); } | GradientColor implements Serializable { public Color[] getColors() { return colors; } protected GradientColor(Color[] colors); GradientColor(List<Object> colors); Color[] getColors(); final static GradientColor BROWN_RED_YELLOW; final static GradientColor GREEN_YELLOW_WHITE; final static GradientColor WHITE_BLUE; } |
@Test public void createGradientColorWithArraylistAwtColorParam_hasArrayBeakerColorsIsNotEmpty() { GradientColor gradientColor = new GradientColor(Arrays.asList(java.awt.Color.GREEN, java.awt.Color.BLUE)); Assertions.assertThat(gradientColor.getColors()[0] instanceof Color).isTrue(); Assertions.assertThat(gradientColor... | public Color[] getColors() { return colors; } | GradientColor implements Serializable { public Color[] getColors() { return colors; } } | GradientColor implements Serializable { public Color[] getColors() { return colors; } protected GradientColor(Color[] colors); GradientColor(List<Object> colors); } | GradientColor implements Serializable { public Color[] getColors() { return colors; } protected GradientColor(Color[] colors); GradientColor(List<Object> colors); Color[] getColors(); } | GradientColor implements Serializable { public Color[] getColors() { return colors; } protected GradientColor(Color[] colors); GradientColor(List<Object> colors); Color[] getColors(); final static GradientColor BROWN_RED_YELLOW; final static GradientColor GREEN_YELLOW_WHITE; final static GradientColor WHITE_BLUE; } |
@Test public void createCategoryPlotByEmptyConstructor_hasVerticalOrientation() { CategoryPlot categoryPlot = new CategoryPlot(); Assertions.assertThat(categoryPlot.getOrientation()).isEqualTo(PlotOrientationType.VERTICAL); } | public PlotOrientationType getOrientation() { return orientation; } | CategoryPlot extends AbstractChart implements InternalCommWidget, InternalPlot { public PlotOrientationType getOrientation() { return orientation; } } | CategoryPlot extends AbstractChart implements InternalCommWidget, InternalPlot { public PlotOrientationType getOrientation() { return orientation; } CategoryPlot(); } | CategoryPlot extends AbstractChart implements InternalCommWidget, InternalPlot { public PlotOrientationType getOrientation() { return orientation; } CategoryPlot(); @Override String getModelNameValue(); @Override String getViewNameValue(); @Override Comm getComm(); @Override void close(); CategoryPlot leftShift(Categor... | CategoryPlot extends AbstractChart implements InternalCommWidget, InternalPlot { public PlotOrientationType getOrientation() { return orientation; } CategoryPlot(); @Override String getModelNameValue(); @Override String getViewNameValue(); @Override Comm getComm(); @Override void close(); CategoryPlot leftShift(Categor... |
@Test public void createCategoryLinesByEmptyConstructor_hasWidthIsNotNull() { CategoryLines categoryLines = new CategoryLines(); Assertions.assertThat(categoryLines.getWidth()).isNotNull(); } | public Float getWidth() { return this.width; } | CategoryLines extends CategoryGraphics { public Float getWidth() { return this.width; } } | CategoryLines extends CategoryGraphics { public Float getWidth() { return this.width; } } | CategoryLines extends CategoryGraphics { public Float getWidth() { return this.width; } void setWidth(Float width); Float getWidth(); void setStyle(Object style); StrokeType getStyle(); List<StrokeType> getStyles(); void setInterpolation(Integer interpolation); Integer getInterpolation(); } | CategoryLines extends CategoryGraphics { public Float getWidth() { return this.width; } void setWidth(Float width); Float getWidth(); void setStyle(Object style); StrokeType getStyle(); List<StrokeType> getStyles(); void setInterpolation(Integer interpolation); Integer getInterpolation(); } |
@Test public void createCategoryPointsByEmptyConstructor_hasSizeGreaterThanZero() { CategoryPoints categoryPoints = new CategoryPoints(); Assertions.assertThat(categoryPoints.getSize()).isGreaterThan(0); } | public float getSize() { return this.baseSize; } | CategoryPoints extends CategoryGraphics { public float getSize() { return this.baseSize; } } | CategoryPoints extends CategoryGraphics { public float getSize() { return this.baseSize; } } | CategoryPoints extends CategoryGraphics { public float getSize() { return this.baseSize; } void setSize(Object size); float getSize(); List<Number> getSizes(); void setShape(Object shape); ShapeType getShape(); List<ShapeType> getShapes(); void setFill(Object fill); Boolean getFill(); List<Boolean> getFills(); void se... | CategoryPoints extends CategoryGraphics { public float getSize() { return this.baseSize; } void setSize(Object size); float getSize(); List<Number> getSizes(); void setShape(Object shape); ShapeType getShape(); List<ShapeType> getShapes(); void setFill(Object fill); Boolean getFill(); List<Boolean> getFills(); void se... |
@Test public void createCategoryStemsByEmptyConstructor_hasWidthGreaterThanZero() { CategoryStems categoryStems = new CategoryStems(); Assertions.assertThat(categoryStems.getWidth()).isGreaterThan(0); } | public Float getWidth() { return this.width; } | CategoryStems extends CategoryGraphics { public Float getWidth() { return this.width; } } | CategoryStems extends CategoryGraphics { public Float getWidth() { return this.width; } } | CategoryStems extends CategoryGraphics { public Float getWidth() { return this.width; } void setBase(Object base); Number getBase(); List<Number> getBases(); void setWidth(Float width); Float getWidth(); void setStyle(Object style); StrokeType getStyle(); List<StrokeType> getStyles(); } | CategoryStems extends CategoryGraphics { public Float getWidth() { return this.width; } void setBase(Object base); Number getBase(); List<Number> getBases(); void setWidth(Float width); Float getWidth(); void setStyle(Object style); StrokeType getStyle(); List<StrokeType> getStyles(); } |
@Test public void createCategoryBarsByEmptyConstructor_hasBaseBaseEqualsZero() { CategoryBars categoryBars = new CategoryBars(); Assertions.assertThat(categoryBars.getBase()).isEqualTo(0.0); } | public Number getBase() { return this.baseBase; } | CategoryBars extends CategoryGraphics { public Number getBase() { return this.baseBase; } } | CategoryBars extends CategoryGraphics { public Number getBase() { return this.baseBase; } } | CategoryBars extends CategoryGraphics { public Number getBase() { return this.baseBase; } void setBase(Object base); Number getBase(); List<Number> getBases(); void setWidth(Object width); Number getWidth(); List<Number> getWidths(); void setOutlineColor(Object color); Color getOutlineColor(); List<Object> getOutlineC... | CategoryBars extends CategoryGraphics { public Number getBase() { return this.baseBase; } void setBase(Object base); Number getBase(); List<Number> getBases(); void setWidth(Object width); Number getWidth(); List<Number> getWidths(); void setOutlineColor(Object color); Color getOutlineColor(); List<Object> getOutlineC... |
@Test public void callStackWithMaxSizeAreasIsThree_returnAllAreasWithSizeIsThree() { List<BasedXYGraphics> list = XYStacker.stack(Arrays.asList(area1, area2, area3)); Assertions.assertThat(list.get(0).getX().size()).isEqualTo(3); Assertions.assertThat(list.get(0).getY().size()).isEqualTo(3); Assertions.assertThat(list.... | public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList); } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList); } |
@Test public void shouldSendCommMsgWhenValueChange() throws Exception { SelectMultiple widget = selectMultiple(); widget.setOptions(new String[]{"1","2", "3"}); kernel.clearPublishedMessages(); widget.setValue(new String[]{"2", "3"}); verifyMsgForProperty(kernel, SelectMultiple.VALUE, new String[]{"2", "3"}); } | public SelectMultiple() { super(); openComm(); } | SelectMultiple extends MultipleSelectionWidget { public SelectMultiple() { super(); openComm(); } } | SelectMultiple extends MultipleSelectionWidget { public SelectMultiple() { super(); openComm(); } SelectMultiple(); } | SelectMultiple extends MultipleSelectionWidget { public SelectMultiple() { super(); openComm(); } SelectMultiple(); @Override String getModelNameValue(); @Override String getViewNameValue(); } | SelectMultiple extends MultipleSelectionWidget { public SelectMultiple() { super(); openComm(); } SelectMultiple(); @Override String getModelNameValue(); @Override String getViewNameValue(); static String VIEW_NAME_VALUE; static String MODEL_NAME_VALUE; } |
@Test public void callStackWithOneAndThreeElementsArea_returnFirstAreaWithTheSameYs() { List<BasedXYGraphics> list = XYStacker.stack(Arrays.asList(area1, area3)); List<Number> firstAreaYs = list.get(0).getY(); Assertions.assertThat(firstAreaYs.get(0)) .isEqualTo(firstAreaYs.get(1)) .isEqualTo(firstAreaYs.get(2)); } | public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList); } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList); } |
@Test public void callStackWithAreas_returnFirstAreaYsEqualsSecondAreaBases() { List<BasedXYGraphics> list = XYStacker.stack(Arrays.asList(area3, area1)); List<Number> firstAreaYs = list.get(0).getY(); List<Number> secondAreaBases = list.get(1).getBases(); Assertions.assertThat(firstAreaYs.get(0)).isEqualTo(secondAreaB... | public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList); } | XYStacker { public static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList) { return transformGraphicsList(graphicsList); } static List<BasedXYGraphics> stack(List<BasedXYGraphics> graphicsList); } |
@Test public void createCrosshairByEmptyConstructor_hasStrokeTypeIsNull() { Crosshair crosshair = new Crosshair(); Assertions.assertThat(crosshair.getStyle()).isNull(); } | public StrokeType getStyle() { return this.style; } | Crosshair implements Serializable { public StrokeType getStyle() { return this.style; } } | Crosshair implements Serializable { public StrokeType getStyle() { return this.style; } } | Crosshair implements Serializable { public StrokeType getStyle() { return this.style; } Crosshair setStyle(StrokeType style); StrokeType getStyle(); Crosshair setWidth(float width); Float getWidth(); Crosshair setColor(Object color); Color getColor(); @Override Object clone(); } | Crosshair implements Serializable { public StrokeType getStyle() { return this.style; } Crosshair setStyle(StrokeType style); StrokeType getStyle(); Crosshair setWidth(float width); Float getWidth(); Crosshair setColor(Object color); Color getColor(); @Override Object clone(); } |
@Test public void createAreaByEmptyConstructor_hasInterpolationIsNull() { Area area = new Area(); Assertions.assertThat(area.getInterpolation()).isNull(); } | public Integer getInterpolation() { return this.interpolation; } | Area extends BasedXYGraphics { public Integer getInterpolation() { return this.interpolation; } } | Area extends BasedXYGraphics { public Integer getInterpolation() { return this.interpolation; } } | Area extends BasedXYGraphics { public Integer getInterpolation() { return this.interpolation; } void setInterpolation(Integer interpolation); Integer getInterpolation(); } | Area extends BasedXYGraphics { public Integer getInterpolation() { return this.interpolation; } void setInterpolation(Integer interpolation); Integer getInterpolation(); } |
@Test(expected = IllegalArgumentException.class) public void setInterpolationWithPositive2_throwIllegalArgumentException() { Area area = new Area(); area.setInterpolation(new Integer(-2)); } | public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } | Area extends BasedXYGraphics { public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } } | Area extends BasedXYGraphics { public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } } | Area extends BasedXYGraphics { public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } void setInterpolation(Integer interpolation); In... | Area extends BasedXYGraphics { public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } void setInterpolation(Integer interpolation); In... |
@Test(expected = IllegalArgumentException.class) public void setInterpolationWithNegative2_throwIllegalArgumentException() { Area area = new Area(); area.setInterpolation(new Integer(2)); } | public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } | Area extends BasedXYGraphics { public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } } | Area extends BasedXYGraphics { public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } } | Area extends BasedXYGraphics { public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } void setInterpolation(Integer interpolation); In... | Area extends BasedXYGraphics { public void setInterpolation(Integer interpolation) { if (interpolation.intValue() < 0 || interpolation.intValue() > 1) { throw new IllegalArgumentException( "Area interpolation is limited to 0, 1"); } this.interpolation = interpolation; } void setInterpolation(Integer interpolation); In... |
@Test public void createTextByEmptyConstructor_hasSizeValueGreaterThanZero() { Text text = new Text(); Assertions.assertThat(text.getSize()).isGreaterThan(0); } | public int getSize() { return size; } | Text implements Serializable, Cloneable { public int getSize() { return size; } } | Text implements Serializable, Cloneable { public int getSize() { return size; } } | Text implements Serializable, Cloneable { public int getSize() { return size; } Number getX(); void setX(Object x); Number getY(); void setY(Number y); Boolean getShowPointer(); void setShowPointer(boolean showPointer); String getText(); void setText(String text); Double getPointerAngle(); void setPointerAngle(Double ... | Text implements Serializable, Cloneable { public int getSize() { return size; } Number getX(); void setX(Object x); Number getY(); void setY(Number y); Boolean getShowPointer(); void setShowPointer(boolean showPointer); String getText(); void setText(String text); Double getPointerAngle(); void setPointerAngle(Double ... |
@Test(expected = IllegalArgumentException.class) public void setStyleWithShapeTypeParam_throwIllegalArgumentException() { Stems stems = new Stems(); stems.setStyle(ShapeType.DEFAULT); } | public void setStyle(Object style) { if (style instanceof StrokeType) { this.baseStyle = (StrokeType) style; } else if (style instanceof List) { @SuppressWarnings("unchecked") List<StrokeType> ss = (List<StrokeType>) style; setStyles(ss); } else { throw new IllegalArgumentException( "setStyle takes ShapeType or List of... | Stems extends BasedXYGraphics { public void setStyle(Object style) { if (style instanceof StrokeType) { this.baseStyle = (StrokeType) style; } else if (style instanceof List) { @SuppressWarnings("unchecked") List<StrokeType> ss = (List<StrokeType>) style; setStyles(ss); } else { throw new IllegalArgumentException( "set... | Stems extends BasedXYGraphics { public void setStyle(Object style) { if (style instanceof StrokeType) { this.baseStyle = (StrokeType) style; } else if (style instanceof List) { @SuppressWarnings("unchecked") List<StrokeType> ss = (List<StrokeType>) style; setStyles(ss); } else { throw new IllegalArgumentException( "set... | Stems extends BasedXYGraphics { public void setStyle(Object style) { if (style instanceof StrokeType) { this.baseStyle = (StrokeType) style; } else if (style instanceof List) { @SuppressWarnings("unchecked") List<StrokeType> ss = (List<StrokeType>) style; setStyles(ss); } else { throw new IllegalArgumentException( "set... | Stems extends BasedXYGraphics { public void setStyle(Object style) { if (style instanceof StrokeType) { this.baseStyle = (StrokeType) style; } else if (style instanceof List) { @SuppressWarnings("unchecked") List<StrokeType> ss = (List<StrokeType>) style; setStyles(ss); } else { throw new IllegalArgumentException( "set... |
@Test public void createLineByEmptyConstructor_lineHasStyleIsNull() { Line line = new Line(); Assertions.assertThat(line.getStyle()).isNull(); } | public StrokeType getStyle() { return this.style; } | Line extends XYGraphics { public StrokeType getStyle() { return this.style; } } | Line extends XYGraphics { public StrokeType getStyle() { return this.style; } Line(); Line(List<Number> ys); Line(List<Object> xs, List<Number> ys); } | Line extends XYGraphics { public StrokeType getStyle() { return this.style; } Line(); Line(List<Number> ys); Line(List<Object> xs, List<Number> ys); void setWidth(Float width); Float getWidth(); void setStyle(StrokeType style); StrokeType getStyle(); void setInterpolation(Integer interpolation); Integer getInterpolat... | Line extends XYGraphics { public StrokeType getStyle() { return this.style; } Line(); Line(List<Number> ys); Line(List<Object> xs, List<Number> ys); void setWidth(Float width); Float getWidth(); void setStyle(StrokeType style); StrokeType getStyle(); void setInterpolation(Integer interpolation); Integer getInterpolat... |
@Test public void setXBoundWithTwoDatesParams_shouldSetXBoundParams() { TimePlot timePlot = new TimePlot(); timePlot.setXBound(lowerBound, upperBound); Assertions.assertThat(timePlot.getXLowerBound()).isGreaterThan(0); Assertions.assertThat(timePlot.getXUpperBound()).isGreaterThan(0); Assertions.assertThat(timePlot.get... | public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } | TimePlot extends XYChart implements InternalCommWidget, InternalPlot { public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } } | TimePlot extends XYChart implements InternalCommWidget, InternalPlot { public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } TimePlot(); } | TimePlot extends XYChart implements InternalCommWidget, InternalPlot { public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } TimePlot(); @Override String getModelNameValue(); @Override String getViewNameValue(); @Override Comm getComm(); @Overri... | TimePlot extends XYChart implements InternalCommWidget, InternalPlot { public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } TimePlot(); @Override String getModelNameValue(); @Override String getViewNameValue(); @Override Comm getComm(); @Overri... |
@Test public void shouldSendCommMsgWhenOptionsChange() throws Exception { SelectMultiple widget = selectMultiple(); widget.setOptions(new String[]{"2", "3"}); verifyMsgForProperty(kernel, SelectMultiple.OPTIONS_LABELS, new String[]{"2", "3"}); } | public SelectMultiple() { super(); openComm(); } | SelectMultiple extends MultipleSelectionWidget { public SelectMultiple() { super(); openComm(); } } | SelectMultiple extends MultipleSelectionWidget { public SelectMultiple() { super(); openComm(); } SelectMultiple(); } | SelectMultiple extends MultipleSelectionWidget { public SelectMultiple() { super(); openComm(); } SelectMultiple(); @Override String getModelNameValue(); @Override String getViewNameValue(); } | SelectMultiple extends MultipleSelectionWidget { public SelectMultiple() { super(); openComm(); } SelectMultiple(); @Override String getModelNameValue(); @Override String getViewNameValue(); static String VIEW_NAME_VALUE; static String MODEL_NAME_VALUE; } |
@Test public void setXBoundWithListParam_shouldSetXBoundParams() { TimePlot timePlot = new TimePlot(); timePlot.setXBound(Arrays.asList(lowerBound, upperBound)); Assertions.assertThat(timePlot.getXLowerBound()).isGreaterThan(0); Assertions.assertThat(timePlot.getXUpperBound()).isGreaterThan(0); Assertions.assertThat(ti... | public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } | TimePlot extends XYChart implements InternalCommWidget, InternalPlot { public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } } | TimePlot extends XYChart implements InternalCommWidget, InternalPlot { public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } TimePlot(); } | TimePlot extends XYChart implements InternalCommWidget, InternalPlot { public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } TimePlot(); @Override String getModelNameValue(); @Override String getViewNameValue(); @Override Comm getComm(); @Overri... | TimePlot extends XYChart implements InternalCommWidget, InternalPlot { public XYChart setXBound(Date lower, Date upper) { setXBound((double) lower.getTime(), (double) upper.getTime()); return this; } TimePlot(); @Override String getModelNameValue(); @Override String getViewNameValue(); @Override Comm getComm(); @Overri... |
@Test public void createHistogramByEmptyConstructor_hasDisplayModeIsNotNull() { Histogram histogram = new Histogram(); Assertions.assertThat(histogram.getDisplayMode()).isNotNull(); } | public DisplayMode getDisplayMode() { return displayMode; } | Histogram extends AbstractChart implements InternalCommWidget, InternalPlot { public DisplayMode getDisplayMode() { return displayMode; } } | Histogram extends AbstractChart implements InternalCommWidget, InternalPlot { public DisplayMode getDisplayMode() { return displayMode; } Histogram(); } | Histogram extends AbstractChart implements InternalCommWidget, InternalPlot { public DisplayMode getDisplayMode() { return displayMode; } Histogram(); @Override String getModelNameValue(); @Override String getViewNameValue(); @Override Comm getComm(); @Override void close(); Integer getRangeMin(); void setRangeMin(Inte... | Histogram extends AbstractChart implements InternalCommWidget, InternalPlot { public DisplayMode getDisplayMode() { return displayMode; } Histogram(); @Override String getModelNameValue(); @Override String getViewNameValue(); @Override Comm getComm(); @Override void close(); Integer getRangeMin(); void setRangeMin(Inte... |
@Test public void createProviderWithTreeMapParam_getColorWithNodeReturnBeakerColorWithRGB() { GradientColorProvider gradientColorProvider = new GradientColorProvider(treeMap); Assertions.assertThat(gradientColorProvider.getColor(treeMap.getRoot()).getRGB()).isNotZero(); Assertions.assertThat(gradientColorProvider.getCo... | @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } | GradientColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } } | GradientColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } GradientColorProvider(TreeMap treeMap, Color start, Color end); ... | GradientColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } GradientColorProvider(TreeMap treeMap, Color start, Color end); ... | GradientColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } GradientColorProvider(TreeMap treeMap, Color start, Color end); ... |
@Test public void createProviderWithTreeMapAndTwoColorsParams_getColorWithNodeReturnBeakerColorWithRGB() { GradientColorProvider gradientColorProvider = new GradientColorProvider(treeMap, Color.BLUE, Color.GREEN); Assertions.assertThat(gradientColorProvider.getColor(treeMap.getRoot()).getRGB()).isNotZero(); Assertions.... | @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } | GradientColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } } | GradientColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } GradientColorProvider(TreeMap treeMap, Color start, Color end); ... | GradientColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } GradientColorProvider(TreeMap treeMap, Color start, Color end); ... | GradientColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { double value = getValue(node); float result = (float) ((value - minValue) / (maxValue - minValue)); return ColorUtils.interpolateColor(start, end, result); } GradientColorProvider(TreeMap treeMap, Color start, Color end); ... |
@Test public void createProviderWithEmptyConstructor_getColorWithNodeReturnBeakerColorWithRGB() { RandomColorProvider randomColorProvider = new RandomColorProvider(); Assertions.assertThat(randomColorProvider.getColor(node01).getRGB()).isNotZero(); Assertions.assertThat(randomColorProvider.getColor(node02).getRGB()).is... | @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, colours[this.cursor]); cursor++; if (this.curs... | RandomColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, co... | RandomColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, co... | RandomColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, co... | RandomColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, co... |
@Test public void createProviderWithColorArrayParam_getColorWithNodeReturnBeakerColorWithRGB() { RandomColorProvider randomColorProvider = new RandomColorProvider(new Color[] {Color.BLUE, Color.GREEN}); Assertions.assertThat(randomColorProvider.getColor(node01).getRGB()).isNotZero(); Assertions.assertThat(randomColorPr... | @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, colours[this.cursor]); cursor++; if (this.curs... | RandomColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, co... | RandomColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, co... | RandomColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, co... | RandomColorProvider extends ColorProvider { @Override public Color getColor(TreeMapNode node) { Object value; if (groupByParent && node.getParent() instanceof TreeMapNode){ value = ((TreeMapNode) node.getParent()).getLabel(); }else{ value = getValue(node); } if (!this.mapping.containsKey(value)) { mapping.put(value, co... |
@Test public void callInterpolateColorWithGreenBlueColors_returnBeakerColorWithRGB() { Color color = ColorUtils.interpolateColor(java.awt.Color.GREEN, java.awt.Color.BLUE, 0.1f); Assertions.assertThat(color.getRGB()).isNotZero(); } | public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = COLOR1.getGreen... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... |
@Test public void callInterpolateColorWithGreenBlueColorsAndFractionIsZero_returnBeakerColorWithGreenValue() { Color color = ColorUtils.interpolateColor(java.awt.Color.GREEN, java.awt.Color.BLUE, 0f); Assertions.assertThat(color).isEqualTo(Color.GREEN); } | public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = COLOR1.getGreen... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... |
@Test public void callInterpolateColorWithGreenBlueColorsAndFractionIsOne_returnBeakerColorWithBlueValue() { Color color = ColorUtils.interpolateColor(java.awt.Color.GREEN, java.awt.Color.BLUE, 1f); Assertions.assertThat(color).isEqualTo(Color.BLUE); } | public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = COLOR1.getGreen... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... | ColorUtils { public static Color interpolateColor(final java.awt.Color COLOR1, final java.awt.Color COLOR2, float fraction) { final float INT_TO_FLOAT_CONST = 1f / 255f; fraction = Math.min(fraction, 1f); fraction = Math.max(fraction, 0f); final float RED1 = COLOR1.getRed() * INT_TO_FLOAT_CONST; final float GREEN1 = CO... |
@Test public void shouldSendCommMsgWhenValueChange() throws Exception { RadioButtons widget = radioButtons(); widget.setValue("1"); verifyMsgForProperty(groovyKernel, RadioButtons.VALUE, "1"); } | public RadioButtons() { super(); openComm(); } | RadioButtons extends SingleSelectionWidget { public RadioButtons() { super(); openComm(); } } | RadioButtons extends SingleSelectionWidget { public RadioButtons() { super(); openComm(); } RadioButtons(); } | RadioButtons extends SingleSelectionWidget { public RadioButtons() { super(); openComm(); } RadioButtons(); @Override String getModelNameValue(); @Override String getViewNameValue(); } | RadioButtons extends SingleSelectionWidget { public RadioButtons() { super(); openComm(); } RadioButtons(); @Override String getModelNameValue(); @Override String getViewNameValue(); static String VIEW_NAME_VALUE; static String MODEL_NAME_VALUE; } |
@Test public void shouldSendCommMsgWhenOptionsChange() throws Exception { RadioButtons widget = radioButtons(); widget.setOptions(new String[]{"2", "3"}); verifyMsgForProperty(groovyKernel, RadioButtons.OPTIONS_LABELS, new String[]{"2", "3"}); } | public RadioButtons() { super(); openComm(); } | RadioButtons extends SingleSelectionWidget { public RadioButtons() { super(); openComm(); } } | RadioButtons extends SingleSelectionWidget { public RadioButtons() { super(); openComm(); } RadioButtons(); } | RadioButtons extends SingleSelectionWidget { public RadioButtons() { super(); openComm(); } RadioButtons(); @Override String getModelNameValue(); @Override String getViewNameValue(); } | RadioButtons extends SingleSelectionWidget { public RadioButtons() { super(); openComm(); } RadioButtons(); @Override String getModelNameValue(); @Override String getViewNameValue(); static String VIEW_NAME_VALUE; static String MODEL_NAME_VALUE; } |
@Test public void shouldSendCommMsgWhenValueChange() throws Exception { Select widget = select(); widget.setValue("1"); verifyMsgForProperty(groovyKernel, Select.VALUE, "1"); } | public Select() { super(); openComm(); } | Select extends SingleSelectionWidget { public Select() { super(); openComm(); } } | Select extends SingleSelectionWidget { public Select() { super(); openComm(); } Select(); } | Select extends SingleSelectionWidget { public Select() { super(); openComm(); } Select(); @Override String getModelNameValue(); @Override String getViewNameValue(); } | Select extends SingleSelectionWidget { public Select() { super(); openComm(); } Select(); @Override String getModelNameValue(); @Override String getViewNameValue(); static String VIEW_NAME_VALUE; static String MODEL_NAME_VALUE; } |
@Test public void shouldSendCommMsgWhenOptionsChange() throws Exception { Select widget = select(); widget.setOptions(new String[]{"2", "3"}); verifyMsgForProperty(groovyKernel, RadioButtons.OPTIONS_LABELS, new String[]{"2", "3"}); } | public Select() { super(); openComm(); } | Select extends SingleSelectionWidget { public Select() { super(); openComm(); } } | Select extends SingleSelectionWidget { public Select() { super(); openComm(); } Select(); } | Select extends SingleSelectionWidget { public Select() { super(); openComm(); } Select(); @Override String getModelNameValue(); @Override String getViewNameValue(); } | Select extends SingleSelectionWidget { public Select() { super(); openComm(); } Select(); @Override String getModelNameValue(); @Override String getViewNameValue(); static String VIEW_NAME_VALUE; static String MODEL_NAME_VALUE; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.