From: Lars K?h. <lk...@us...> - 2003-12-28 05:16:46
|
Update of /cvsroot/clirr/clirr/src/test/net/sf/clirr/ant In directory sc8-pr-cvs1:/tmp/cvs-serv6028/src/test/net/sf/clirr/ant Modified Files: ChangeCounterTest.java Log Message: added information about affected class/method/field to ApiDifference This is a first step towards filtering diffs to let the user specify changes that are OK Index: ChangeCounterTest.java =================================================================== RCS file: /cvsroot/clirr/clirr/src/test/net/sf/clirr/ant/ChangeCounterTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ChangeCounterTest.java 27 Dec 2003 17:44:17 -0000 1.2 +++ ChangeCounterTest.java 27 Dec 2003 19:08:42 -0000 1.3 @@ -9,12 +9,12 @@ public void testCorrectCounting() { ChangeCounter counter = new ChangeCounter(); - counter.reportDiff(new ApiDifference("blah", Severity.WARNING)); - counter.reportDiff(new ApiDifference("blah", Severity.ERROR)); - counter.reportDiff(new ApiDifference("blah", Severity.INFO)); - counter.reportDiff(new ApiDifference("blah", Severity.ERROR)); - counter.reportDiff(new ApiDifference("blah", Severity.ERROR)); - counter.reportDiff(new ApiDifference("blah", Severity.WARNING)); + counter.reportDiff(new ApiDifference("blah", Severity.WARNING, "Test", null, null)); + counter.reportDiff(new ApiDifference("blah", Severity.ERROR, "Test", null, null)); + counter.reportDiff(new ApiDifference("blah", Severity.INFO, "Test", null, null)); + counter.reportDiff(new ApiDifference("blah", Severity.ERROR, "Test", null, null)); + counter.reportDiff(new ApiDifference("blah", Severity.ERROR, "Test", null, null)); + counter.reportDiff(new ApiDifference("blah", Severity.WARNING, "Test", null, null)); assertEquals("number of expected errors", 3, counter.getErrors()); assertEquals("number of expected warnings", 2, counter.getWarnings()); assertEquals("number of expected infos", 1, counter.getInfos()); |