X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=inline;f=trunk%2Fsupport%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Ftest%2FAssertionUtils.java;h=07caaa93d8d806a999d4a18749620ef1371cbe41;hb=050ff03da91723fd8ca8bfbd3cf260ac9fdde807;hp=86585f29ed711d7be6488aab78b4cd2882afd72f;hpb=1c50799fedc4f092130f57dc7e8e856bfe2c4a08;p=utils diff --git a/trunk/support/general/src/test/java/org/wamblee/test/AssertionUtils.java b/trunk/support/general/src/test/java/org/wamblee/test/AssertionUtils.java index 86585f29..07caaa93 100644 --- a/trunk/support/general/src/test/java/org/wamblee/test/AssertionUtils.java +++ b/trunk/support/general/src/test/java/org/wamblee/test/AssertionUtils.java @@ -22,6 +22,9 @@ import java.util.List; import java.util.Map; import java.util.Set; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import junit.framework.TestCase; /** @@ -30,6 +33,8 @@ import junit.framework.TestCase; * @author Erik Brakkee */ public final class AssertionUtils { + + private static final Log LOG = LogFactory.getLog(AssertionUtils.class); /** * Disabled constructor. @@ -142,6 +147,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 {