Package com.github.nmorel.gwtjackson.client.JsonSerializationContext

Examples of com.github.nmorel.gwtjackson.client.JsonSerializationContext.Builder


    }

    private DateOptionsTester tester = DateOptionsTester.INSTANCE;

    public void testSerializeDatesAsTimestamps() {
        tester.testSerializeDatesAsTimestamps( createWriter( BeanWithDatesMapper.INSTANCE, new Builder().writeDatesAsTimestamps( true )
                .writeDateKeysAsTimestamps( true ).build() ) );
    }
View Full Code Here


    public void testDeserializeDatesAsTimestamps() {
        tester.testDeserializeDatesAsTimestamps( createReader( BeanWithDatesMapper.INSTANCE ) );
    }

    public void testSerializeDatesNotAsTimestamps() {
        tester.testSerializeDatesNotAsTimestamps( createWriter( BeanWithDatesMapper.INSTANCE, new Builder().writeDatesAsTimestamps( false )
                .writeDateKeysAsTimestamps( false ).build() ) );
    }
View Full Code Here

    public void testWriteEmptyArray() {
        tester.testWriteEmptyArray( createWriter( EmptyArrayBeanWriter.INSTANCE ) );
    }

    public void testWriteNonEmptyList() {
        tester.testWriteNonEmptyList( createWriter( EmptyListBeanWriter.INSTANCE, new Builder().writeEmptyJsonArrays( false ).build() ) );
    }
View Full Code Here

    public void testWriteNonEmptyList() {
        tester.testWriteNonEmptyList( createWriter( EmptyListBeanWriter.INSTANCE, new Builder().writeEmptyJsonArrays( false ).build() ) );
    }

    public void testWriteNonEmptyArray() {
        tester.testWriteNonEmptyArray( createWriter( EmptyArrayBeanWriter.INSTANCE, new Builder().writeEmptyJsonArrays( false ).build() ) );
    }
View Full Code Here

    public void testSerialize() {
        tester.testSerialize( BeanWithOptionalMapper.INSTANCE );
    }

    public void testSerializeWithNonNullSerialization() {
        tester.testSerializeWithNonNullSerialization( createWriter( BeanWithOptionalMapper.INSTANCE, new Builder().serializeNulls( false )
                .build() ) );
    }
View Full Code Here

TOP

Related Classes of com.github.nmorel.gwtjackson.client.JsonSerializationContext.Builder

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.