Author: markt Date: Mon Feb 8 15:09:53 2016 New Revision: 1729188 URL: http://svn.apache.org/viewvc?rev=1729188&view=rev Log: Log the unexpected class rather than the expected one. It makes debugging that little bit easier when you don't need a crystal ball.
Modified: tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/server/TestClose.java Modified: tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/server/TestClose.java URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/server/TestClose.java?rev=1729188&r1=1729187&r2=1729188&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/server/TestClose.java (original) +++ tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/server/TestClose.java Mon Feb 8 15:09:53 2016 @@ -110,7 +110,7 @@ public class TestClose extends TomcatBas public static void awaitOnError(Class<? extends Throwable> exceptionClazz) { awaitLatch(events.onErrorCalled, "onError not called"); - Assert.assertTrue(exceptionClazz.getName(), + Assert.assertTrue(events.onErrorThrowable.getClass().getName(), exceptionClazz.isAssignableFrom(events.onErrorThrowable.getClass())); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org