From bbbf41f2441976dc46051e1ee63f19c33d2a6a83 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Mon, 8 Jun 2020 20:30:45 -0700 Subject: [PATCH] Test refactoring (test renaming) --- .../CoerceContainersTest.java} | 4 ++-- .../CoerceJDKScalarsTest.java} | 4 ++-- .../BeanCoercionTest.java => convert/CoercePojosTest.java} | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) rename src/test/java/com/fasterxml/jackson/databind/{deser/MiscCoercionTest.java => convert/CoerceContainersTest.java} (98%) rename src/test/java/com/fasterxml/jackson/databind/{struct/ScalarCoercionTest.java => convert/CoerceJDKScalarsTest.java} (99%) rename src/test/java/com/fasterxml/jackson/databind/{deser/BeanCoercionTest.java => convert/CoercePojosTest.java} (98%) diff --git a/src/test/java/com/fasterxml/jackson/databind/deser/MiscCoercionTest.java b/src/test/java/com/fasterxml/jackson/databind/convert/CoerceContainersTest.java similarity index 98% rename from src/test/java/com/fasterxml/jackson/databind/deser/MiscCoercionTest.java rename to src/test/java/com/fasterxml/jackson/databind/convert/CoerceContainersTest.java index 17ef009da8..a223264451 100644 --- a/src/test/java/com/fasterxml/jackson/databind/deser/MiscCoercionTest.java +++ b/src/test/java/com/fasterxml/jackson/databind/convert/CoerceContainersTest.java @@ -1,4 +1,4 @@ -package com.fasterxml.jackson.databind.deser; +package com.fasterxml.jackson.databind.convert; import java.util.*; @@ -8,7 +8,7 @@ import com.fasterxml.jackson.databind.cfg.CoercionAction; import com.fasterxml.jackson.databind.cfg.CoercionInputShape; -public class MiscCoercionTest extends BaseMapTest +public class CoerceContainersTest extends BaseMapTest { private final String JSON_EMPTY = quote(""); diff --git a/src/test/java/com/fasterxml/jackson/databind/struct/ScalarCoercionTest.java b/src/test/java/com/fasterxml/jackson/databind/convert/CoerceJDKScalarsTest.java similarity index 99% rename from src/test/java/com/fasterxml/jackson/databind/struct/ScalarCoercionTest.java rename to src/test/java/com/fasterxml/jackson/databind/convert/CoerceJDKScalarsTest.java index 65396f3aaa..aa73388f2d 100644 --- a/src/test/java/com/fasterxml/jackson/databind/struct/ScalarCoercionTest.java +++ b/src/test/java/com/fasterxml/jackson/databind/convert/CoerceJDKScalarsTest.java @@ -1,4 +1,4 @@ -package com.fasterxml.jackson.databind.struct; +package com.fasterxml.jackson.databind.convert; import java.io.ByteArrayInputStream; import java.io.IOException; @@ -11,7 +11,7 @@ import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.exc.MismatchedInputException; -public class ScalarCoercionTest extends BaseMapTest +public class CoerceJDKScalarsTest extends BaseMapTest { static class BooleanPOJO { public boolean value; diff --git a/src/test/java/com/fasterxml/jackson/databind/deser/BeanCoercionTest.java b/src/test/java/com/fasterxml/jackson/databind/convert/CoercePojosTest.java similarity index 98% rename from src/test/java/com/fasterxml/jackson/databind/deser/BeanCoercionTest.java rename to src/test/java/com/fasterxml/jackson/databind/convert/CoercePojosTest.java index 405b8f9f11..6c0a495822 100644 --- a/src/test/java/com/fasterxml/jackson/databind/deser/BeanCoercionTest.java +++ b/src/test/java/com/fasterxml/jackson/databind/convert/CoercePojosTest.java @@ -1,4 +1,4 @@ -package com.fasterxml.jackson.databind.deser; +package com.fasterxml.jackson.databind.convert; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.*; @@ -6,13 +6,12 @@ import com.fasterxml.jackson.databind.cfg.CoercionInputShape; import com.fasterxml.jackson.databind.type.LogicalType; -public class BeanCoercionTest extends BaseMapTest +public class CoercePojosTest extends BaseMapTest { static class Bean { public String a; } - private final ObjectMapper MAPPER = newJsonMapper(); private final String JSON_EMPTY = quote("");