Package com.netflix.zeno.genericobject

Examples of com.netflix.zeno.genericobject.DiffHtmlGenerator


        }

    }

    private void displayObjectDifferences(A from, A to) {
        DiffHtmlGenerator generator = new DiffHtmlGenerator(new ExampleSerializerFactory());

        String html = generator.generateDiff("A", from, to);

        displayTheHtml(html);
    }
View Full Code Here


            public NFTypeSerializer<?>[] createSerializers() {
                return new NFTypeSerializer<?>[] { new ASerializer() };
            }
        };

        DiffHtmlGenerator htmlGenerator = new DiffHtmlGenerator(factory);

        GenericObjectSerializationFramework framework = new GenericObjectSerializationFramework(factory);

        GenericObject obj1 = framework.serialize(a1, "TypeA");
        GenericObject obj2 = framework.serialize(a2, "TypeA");

        String diffHtml = htmlGenerator.generateDiff(obj1, obj2);

        /// 4, 5, 6 pair should be matched most closely and come first:
        int indexOf456Pair = diffHtml.indexOf("val1: 4");
        /// 1, 2, 3 and 1, 92, 3 should be matched second closest and come after
        int indexOf123Pair = diffHtml.indexOf("val1: 1");
View Full Code Here

TOP

Related Classes of com.netflix.zeno.genericobject.DiffHtmlGenerator

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.