X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Ftest%2FAssertionUtils.java;h=a0216a8b994128fa314c69c9954580e9ed7e9180;hb=12cfffc613724b7368016b5e3bc83a686d3a6733;hp=86585f29ed711d7be6488aab78b4cd2882afd72f;hpb=370665c0e3ee47aa84858ced493cd8b2dbb2811e;p=utils diff --git a/support/general/src/test/java/org/wamblee/test/AssertionUtils.java b/support/general/src/test/java/org/wamblee/test/AssertionUtils.java index 86585f29..a0216a8b 100644 --- a/support/general/src/test/java/org/wamblee/test/AssertionUtils.java +++ b/support/general/src/test/java/org/wamblee/test/AssertionUtils.java @@ -16,20 +16,23 @@ package org.wamblee.test; import java.util.Arrays; -import java.util.Comparator; import java.util.Iterator; -import java.util.List; import java.util.Map; import java.util.Set; import junit.framework.TestCase; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + /** * Useful assertions for use in test cases. * * @author Erik Brakkee */ public final class AssertionUtils { + + private static final Log LOG = LogFactory.getLog(AssertionUtils.class); /** * Disabled constructor. @@ -142,6 +145,7 @@ public final class AssertionUtils { throw new RuntimeException("No exception occurred"); } catch (Throwable t) { if ( aType.isInstance(t)) { + LOG.info("Expected exception occured " + t.getMessage()); return; // ok } else {