Package com.netflix.zeno.testpojos

Examples of com.netflix.zeno.testpojos.TypeG


    @Test
    public void roundTripJsonWithTwoHierarchicalLevels() throws IOException {
        JsonSerializationFramework jsonFramework = new JsonSerializationFramework(typeGSerializerFactory);

        String json = jsonFramework.serializeAsJson("TypeG", new TypeG(new TypeD(1, new TypeA(2, 3))));

        try {
            jsonFramework.deserializeJson("TypeG", json);
        } catch(Exception e) {
            Assert.fail("Exception was thrown");
View Full Code Here

TOP

Related Classes of com.netflix.zeno.testpojos.TypeG

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.