Package com.googlecode.wickedcharts.highcharts.jackson

Examples of com.googlecode.wickedcharts.highcharts.jackson.JsonRenderer


    public void roundTrip() throws Exception {
        final WickedChart wickedChartBefore = new WickedChart(createOptions());
        final String encodedString = encoderDecoder.toEncodedString(wickedChartBefore);
        final WickedChart wickedChartAfter = encoderDecoder.fromEncodedString(encodedString);
       
        String jsonBefore = new JsonRenderer().toJson(wickedChartBefore.getOptions());
        String jsonAfter = new JsonRenderer().toJson(wickedChartAfter.getOptions());
       
        assertThat(jsonBefore, is(jsonAfter));
    }
View Full Code Here


    public void roundTrip() throws Exception {
        final WickedChart wickedChartBefore = new WickedChart(createOptions());
        final String encodedString = encoderDecoder.toEncodedString(wickedChartBefore);
        final WickedChart wickedChartAfter = encoderDecoder.fromEncodedString(encodedString);
       
        String jsonBefore = new JsonRenderer().toJson(wickedChartBefore.getOptions());
        String jsonAfter = new JsonRenderer().toJson(wickedChartAfter.getOptions());
       
        assertThat(jsonBefore, is(jsonAfter));
    }
View Full Code Here

TOP

Related Classes of com.googlecode.wickedcharts.highcharts.jackson.JsonRenderer

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.