[Clirr-devel] CVS: clirr/src/test/net/sf/clirr/checks AbstractCheckTestCase.java,1.3,1.4
Status: Alpha
Brought to you by:
lkuehne
From: Simon K. <s_k...@us...> - 2004-06-23 04:51:18
|
Update of /cvsroot/clirr/clirr/src/test/net/sf/clirr/checks In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4522 Modified Files: AbstractCheckTestCase.java Log Message: Don't catch exceptions; allow junit to catch them instead. This means that the output actually has the real exception cause displayed, making tracking bugs down much easier.. Index: AbstractCheckTestCase.java =================================================================== RCS file: /cvsroot/clirr/clirr/src/test/net/sf/clirr/checks/AbstractCheckTestCase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- AbstractCheckTestCase.java 11 Jun 2004 00:26:36 -0000 1.3 +++ AbstractCheckTestCase.java 23 Jun 2004 04:51:10 -0000 1.4 @@ -46,23 +46,17 @@ } protected void verify(ApiDifference[] expected) + throws Exception { TestDiffListener tdl = new TestDiffListener(); Checker checker = CheckerFactory.createChecker(createCheck(tdl)); ClassSelector classSelector = createClassSelector(); - try - { - checker.reportDiffs( - getBaseLine(), getCurrent(), - new URLClassLoader(new URL[]{}), - new URLClassLoader(new URL[]{}), - classSelector); - } - catch(Exception ex) - { - fail("Exception generated:" + ex.getMessage()); - } + checker.reportDiffs( + getBaseLine(), getCurrent(), + new URLClassLoader(new URL[]{}), + new URLClassLoader(new URL[]{}), + classSelector); tdl.checkExpected(expected); } |