Package hudson.plugins.analysis.util.model

Examples of hudson.plugins.analysis.util.model.AnnotationStream


    /**
     * Tests whether the instance hash of the findbugs library is correctly used.
     */
    @Test
    public void testInstanceHash() {
        AnnotationStream xstream = new AnnotationStream();
        xstream.alias("bug", Bug.class);

        InputStream stream = BugsDifferencerTest.class.getResourceAsStream("issue-6669-1.xml");
        FileAnnotation[] current;
        try {
            current = (FileAnnotation[])xstream.fromXML(stream);
            assertEquals("Wrong number of bugs", 2, current.length);
        }
        finally {
            IOUtils.closeQuietly(stream);
        }
        stream = BugsDifferencerTest.class.getResourceAsStream("issue-6669-2.xml");

        FileAnnotation[] previous;
        try {
            previous = (FileAnnotation[])xstream.fromXML(stream);
            assertEquals("Wrong number of bugs", 2, previous.length);
        }
        finally {
            IOUtils.closeQuietly(stream);
        }
View Full Code Here


     * Returns the {@link XStream} to use.
     *
     * @return the annotation stream to use
     */
    private XStream getXStream() {
        AnnotationStream xstream = new AnnotationStream();
        configure(xstream);

        return xstream;
    }
View Full Code Here

TOP

Related Classes of hudson.plugins.analysis.util.model.AnnotationStream

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.