mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-03-10 08:51:19 +00:00
Rename test classes from Codec to Mapper
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package io.vertx.core.json;
|
||||
|
||||
import io.vertx.core.json.codecs.*;
|
||||
import io.vertx.core.json.mappers.*;
|
||||
import org.junit.Test;
|
||||
|
||||
import static io.vertx.core.json.Json.encodeToBuffer;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.vertx.core.json.codecs;
|
||||
package io.vertx.core.json.mappers;
|
||||
|
||||
import io.vertx.core.spi.json.JsonMapper;
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Objects;
|
||||
|
||||
public class MyBooleanPojo {
|
||||
|
||||
public static class MyBooleanPojoJsonCodec implements JsonMapper<MyBooleanPojo, Boolean> {
|
||||
public static class MyBooleanPojoJsonMapper implements JsonMapper<MyBooleanPojo, Boolean> {
|
||||
|
||||
@Override
|
||||
public MyBooleanPojo deserialize(Boolean value) throws IllegalArgumentException {
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.vertx.core.json.codecs;
|
||||
package io.vertx.core.json.mappers;
|
||||
|
||||
import io.vertx.core.spi.json.JsonMapper;
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Objects;
|
||||
|
||||
public class MyDoublePojo {
|
||||
|
||||
public static class MyDoublePojoJsonCodec implements JsonMapper<MyDoublePojo, Number> {
|
||||
public static class MyDoublePojoJsonMapper implements JsonMapper<MyDoublePojo, Number> {
|
||||
|
||||
@Override
|
||||
public MyDoublePojo deserialize(Number value) throws IllegalArgumentException {
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.vertx.core.json.codecs;
|
||||
package io.vertx.core.json.mappers;
|
||||
|
||||
import io.vertx.core.spi.json.JsonMapper;
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Objects;
|
||||
|
||||
public class MyFloatPojo {
|
||||
|
||||
public static class MyFloatPojoJsonCodec implements JsonMapper<MyFloatPojo, Number> {
|
||||
public static class MyFloatPojoJsonMapper implements JsonMapper<MyFloatPojo, Number> {
|
||||
|
||||
@Override
|
||||
public MyFloatPojo deserialize(Number value) throws IllegalArgumentException {
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.vertx.core.json.codecs;
|
||||
package io.vertx.core.json.mappers;
|
||||
|
||||
import io.vertx.core.spi.json.JsonMapper;
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Objects;
|
||||
|
||||
public class MyIntegerPojo {
|
||||
|
||||
public static class MyIntegerPojoJsonCodec implements JsonMapper<MyIntegerPojo, Number> {
|
||||
public static class MyIntegerPojoJsonMapper implements JsonMapper<MyIntegerPojo, Number> {
|
||||
|
||||
@Override
|
||||
public MyIntegerPojo deserialize(Number value) throws IllegalArgumentException {
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.vertx.core.json.codecs;
|
||||
package io.vertx.core.json.mappers;
|
||||
|
||||
import io.vertx.core.spi.json.JsonMapper;
|
||||
import io.vertx.core.json.JsonArray;
|
||||
@@ -7,7 +7,7 @@ import java.util.Objects;
|
||||
|
||||
public class MyJsonArrayPojo {
|
||||
|
||||
public static class MyJsonArrayPojoJsonCodec implements JsonMapper<MyJsonArrayPojo, JsonArray> {
|
||||
public static class MyJsonArrayPojoJsonMapper implements JsonMapper<MyJsonArrayPojo, JsonArray> {
|
||||
|
||||
@Override
|
||||
public MyJsonArrayPojo deserialize(JsonArray value) throws IllegalArgumentException {
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.vertx.core.json.codecs;
|
||||
package io.vertx.core.json.mappers;
|
||||
|
||||
import io.vertx.core.spi.json.JsonMapper;
|
||||
import io.vertx.core.json.JsonObject;
|
||||
@@ -7,7 +7,7 @@ import java.util.Objects;
|
||||
|
||||
public class MyJsonObjectPojo {
|
||||
|
||||
public static class MyJsonObjectPojoJsonCodec implements JsonMapper<MyJsonObjectPojo, JsonObject> {
|
||||
public static class MyJsonObjectPojoJsonMapper implements JsonMapper<MyJsonObjectPojo, JsonObject> {
|
||||
|
||||
@Override
|
||||
public MyJsonObjectPojo deserialize(JsonObject value) throws IllegalArgumentException {
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.vertx.core.json.codecs;
|
||||
package io.vertx.core.json.mappers;
|
||||
|
||||
import io.vertx.core.spi.json.JsonMapper;
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Objects;
|
||||
|
||||
public class MyLongPojo {
|
||||
|
||||
public static class MyLongPojoJsonCodec implements JsonMapper<MyLongPojo, Number> {
|
||||
public static class MyLongPojoJsonMapper implements JsonMapper<MyLongPojo, Number> {
|
||||
|
||||
@Override
|
||||
public MyLongPojo deserialize(Number value) throws IllegalArgumentException {
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.vertx.core.json.codecs;
|
||||
package io.vertx.core.json.mappers;
|
||||
|
||||
import io.vertx.core.spi.json.JsonMapper;
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Objects;
|
||||
|
||||
public class MyShortPojo {
|
||||
|
||||
public static class MyShortPojoJsonCodec implements JsonMapper<MyShortPojo, Number> {
|
||||
public static class MyShortPojoJsonMapper implements JsonMapper<MyShortPojo, Number> {
|
||||
|
||||
@Override
|
||||
public MyShortPojo deserialize(Number value) throws IllegalArgumentException {
|
||||
@@ -1,8 +1,8 @@
|
||||
io.vertx.core.json.codecs.MyBooleanPojo$MyBooleanPojoJsonCodec
|
||||
io.vertx.core.json.codecs.MyDoublePojo$MyDoublePojoJsonCodec
|
||||
io.vertx.core.json.codecs.MyFloatPojo$MyFloatPojoJsonCodec
|
||||
io.vertx.core.json.codecs.MyIntegerPojo$MyIntegerPojoJsonCodec
|
||||
io.vertx.core.json.codecs.MyJsonArrayPojo$MyJsonArrayPojoJsonCodec
|
||||
io.vertx.core.json.codecs.MyJsonObjectPojo$MyJsonObjectPojoJsonCodec
|
||||
io.vertx.core.json.codecs.MyLongPojo$MyLongPojoJsonCodec
|
||||
io.vertx.core.json.codecs.MyShortPojo$MyShortPojoJsonCodec
|
||||
io.vertx.core.json.mappers.MyBooleanPojo$MyBooleanPojoJsonMapper
|
||||
io.vertx.core.json.mappers.MyDoublePojo$MyDoublePojoJsonMapper
|
||||
io.vertx.core.json.mappers.MyFloatPojo$MyFloatPojoJsonMapper
|
||||
io.vertx.core.json.mappers.MyIntegerPojo$MyIntegerPojoJsonMapper
|
||||
io.vertx.core.json.mappers.MyJsonArrayPojo$MyJsonArrayPojoJsonMapper
|
||||
io.vertx.core.json.mappers.MyJsonObjectPojo$MyJsonObjectPojoJsonMapper
|
||||
io.vertx.core.json.mappers.MyLongPojo$MyLongPojoJsonMapper
|
||||
io.vertx.core.json.mappers.MyShortPojo$MyShortPojoJsonMapper
|
||||
|
||||
Reference in New Issue
Block a user