From 62bcc80dcc161bc8f18f55277f32fcf2d58217c5 Mon Sep 17 00:00:00 2001 From: Owen Stephens Date: Thu, 4 Apr 2019 11:41:35 +0100 Subject: [PATCH] Add tests for serialisation of Booleans and Numbers in cells --- .../com/google/refine/tests/model/CellTests.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/main/tests/server/src/com/google/refine/tests/model/CellTests.java b/main/tests/server/src/com/google/refine/tests/model/CellTests.java index 3872e68bc..d8cf868cb 100644 --- a/main/tests/server/src/com/google/refine/tests/model/CellTests.java +++ b/main/tests/server/src/com/google/refine/tests/model/CellTests.java @@ -95,4 +95,18 @@ public class CellTests { String json = "{\"v\":\"2018-03-04T08:09:10Z\",\"t\":\"date\"}"; TestUtils.isSerializedTo(Cell.loadStreaming(json, pool), json); } + + @Test + public void serializeNumberCell() throws Exception { + String json = "{\"v\": 1}"; + Cell c = Cell.loadStreaming(json, pool); + TestUtils.isSerializedTo(c, json); + } + + @Test + public void serializeBooleanCell() throws Exception { + String json = "{\"v\": true}"; + Cell c = Cell.loadStreaming(json, pool); + TestUtils.isSerializedTo(c, json); + } }