Package com.fasterxml.jackson.databind.annotation

Examples of com.fasterxml.jackson.databind.annotation.JsonSerialize


    }

    @Test
    public void shouldCreateByteArrayFieldWithAnyEncoding() throws SecurityException, NoSuchFieldException {
        Field field = classWithMediaProperties.getDeclaredField("anyBinaryEncoding");
        JsonSerialize serAnnotation = field.getAnnotation(JsonSerialize.class);
        JsonDeserialize deserAnnotation = field.getAnnotation(JsonDeserialize.class);

        assertThat("any binary encoding field has type byte[]", field.getType(), equalToType(BYTE_ARRAY));
        assertThat("any binary encoding has a serializer", serAnnotation, notNullValue());
        assertThat("any binary encoding has a deserializer", deserAnnotation, notNullValue());
View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.databind.annotation.JsonSerialize

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.