Author: veithen
Date: Wed Nov 18 23:19:10 2015
New Revision: 1715079
URL: http://svn.apache.org/viewvc?rev=1715079&view=rev
Log:
Improve test diagnostic messages.
Modified:
axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java
Modified:
axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java?rev=1715079&r1=1715078&r2=1715079&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java
(original)
+++
axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java
Wed Nov 18 23:19:10 2015
@@ -33,6 +33,9 @@ import org.apache.axis2.jaxws.registry.F
import javax.xml.ws.handler.Handler;
import javax.xml.ws.handler.soap.SOAPHandler;
import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import static com.google.common.truth.Truth.assertThat;
+
import java.util.ArrayList;
import java.util.Set;
@@ -83,8 +86,8 @@ public class HandlerPrePostInvokerTests
HandlerPostInvokerFactory postFact =
(HandlerPostInvokerFactory)FactoryRegistry.getFactory(HandlerPostInvokerFactory.class);
HandlerPreInvoker preInvoker = preFact.createHandlerPreInvoker();
HandlerPostInvoker postInvoker = postFact.createHandlerPostInvoker();
- assertTrue("preInvoker should be instanceof " +
org.apache.axis2.jaxws.handler.impl.HandlerPreInvokerImpl.class.getCanonicalName(),
preInvoker instanceof
org.apache.axis2.jaxws.handler.impl.HandlerPreInvokerImpl);
- assertTrue("postInvoker should be instanceof " +
org.apache.axis2.jaxws.handler.impl.HandlerPostInvokerImpl.class.getCanonicalName(),
postInvoker instanceof
org.apache.axis2.jaxws.handler.impl.HandlerPostInvokerImpl);
+
assertThat(preInvoker).named("preInvoker").isInstanceOf(org.apache.axis2.jaxws.handler.impl.HandlerPreInvokerImpl.class);
+
assertThat(postInvoker).named("postInvoker").isInstanceOf(org.apache.axis2.jaxws.handler.impl.HandlerPostInvokerImpl.class);
}
/**