Examples of overallClassificationIsNotAProblem()


Examples of edu.umd.cs.findbugs.cloud.Cloud.overallClassificationIsNotAProblem()

        assertEquals("MS_MUTABLE_ARRAY", bug.getBugPattern().getType());
        assertEquals("1acc5c5b9b7ab9efacede805afe1e53a", bug.getInstanceHash());
        assertEquals(16, bug.getBugRank());
        assertEquals("4/11/10 11:24 AM", BugInstance.firstSeenXMLFormat().format(bug.getXmlProps().getFirstSeen()));
        Cloud cloud = bc.getCloud();
        assertFalse(cloud.overallClassificationIsNotAProblem(bug));
        assertEquals(0, cloud.getNumberReviewers(bug));
        assertEquals(Cloud.UserDesignation.UNCLASSIFIED, cloud.getConsensusDesignation(bug));
    }

    public void testBugInstanceXmlPropsWithReviews() throws Exception {
View Full Code Here

Examples of edu.umd.cs.findbugs.cloud.Cloud.overallClassificationIsNotAProblem()

        assertEquals("MS_MUTABLE_ARRAY", bug.getBugPattern().getType());
        assertEquals("1acc5c5b9b7ab9efacede805afe1e53a", bug.getInstanceHash());
        assertEquals(16, bug.getBugRank());
        assertEquals("4/11/10 11:24 AM", BugInstance.firstSeenXMLFormat().format(bug.getXmlProps().getFirstSeen()));
        Cloud cloud = bc.getCloud();
        assertTrue(cloud.overallClassificationIsNotAProblem(bug));
        assertEquals(4, cloud.getNumberReviewers(bug));
        assertEquals(Cloud.UserDesignation.NOT_A_BUG, cloud.getConsensusDesignation(bug));
    }

    public void testBugInstanceXmlPropsWithReviewsShouldFix() throws Exception {
View Full Code Here

Examples of edu.umd.cs.findbugs.cloud.Cloud.overallClassificationIsNotAProblem()

        assertEquals("MS_MUTABLE_ARRAY", bug.getBugPattern().getType());
        assertEquals("1acc5c5b9b7ab9efacede805afe1e53a", bug.getInstanceHash());
        assertEquals(16, bug.getBugRank());
        assertEquals("4/11/10 11:24 AM", BugInstance.firstSeenXMLFormat().format(bug.getXmlProps().getFirstSeen()));
        Cloud cloud = bc.getCloud();
        assertFalse(cloud.overallClassificationIsNotAProblem(bug));
        assertEquals(4, cloud.getNumberReviewers(bug));
        assertEquals(Cloud.UserDesignation.SHOULD_FIX, cloud.getConsensusDesignation(bug));
    }

    public void testReadAndThenStoreXmlProps() throws Exception {
View Full Code Here

Examples of edu.umd.cs.findbugs.cloud.Cloud.overallClassificationIsNotAProblem()

        assertEquals("MS_MUTABLE_ARRAY", bug.getBugPattern().getType());
        assertEquals("1acc5c5b9b7ab9efacede805afe1e53a", bug.getInstanceHash());
        assertEquals(16, bug.getBugRank());
        Cloud cloud = bc.getCloud();
        assertEquals("4/11/10 11:24 AM", BugInstance.firstSeenXMLFormat().format(cloud.getFirstSeen(bug)));
        assertFalse(cloud.overallClassificationIsNotAProblem(bug));
        assertEquals(4, cloud.getNumberReviewers(bug));
        assertEquals(Cloud.UserDesignation.SHOULD_FIX, cloud.getConsensusDesignation(bug));

    }
}
View Full Code Here

Examples of edu.umd.cs.findbugs.cloud.Cloud.overallClassificationIsNotAProblem()

        bug.setFirstSeen(firstSeen);
        int ageInDays = (int)((collection.getAnalysisTimestamp() - firstSeen) / DAY_IN_MSEC);
        bug.setAgeInDays(ageInDays);
        bug.setReviewCount(cloud.getNumberReviewers(warning));

        return cloud.overallClassificationIsNotAProblem(warning);
    }

    private void setAffectedLines(final BugInstance warning, final Bug bug) {
        Iterator<BugAnnotation> annotationIterator = warning.annotationIterator();
        while (annotationIterator.hasNext()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.