This is an automated email from the ASF dual-hosted git repository. veithen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
The following commit(s) were added to refs/heads/master by this push: new f8afe72 Upgrade to Google Truth 1.1 to match the version used by Axiom f8afe72 is described below commit f8afe7226e5ef3b1e874bc343811c3d626c6e723 Author: Andreas Veithen <andreas.veit...@gmail.com> AuthorDate: Thu Dec 24 12:47:30 2020 +0000 Upgrade to Google Truth 1.1 to match the version used by Axiom --- .../java/org/apache/axis2/schema/axis2_5771/IgnoreUnexpectedTest.java | 2 +- .../org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java | 4 ++-- .../src/test/java/org/apache/axis2/transport/jms/JMSUtilsTest.java | 2 +- pom.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/adb-tests/src/test/java/org/apache/axis2/schema/axis2_5771/IgnoreUnexpectedTest.java b/modules/adb-tests/src/test/java/org/apache/axis2/schema/axis2_5771/IgnoreUnexpectedTest.java index 82f70a3..10e0599 100644 --- a/modules/adb-tests/src/test/java/org/apache/axis2/schema/axis2_5771/IgnoreUnexpectedTest.java +++ b/modules/adb-tests/src/test/java/org/apache/axis2/schema/axis2_5771/IgnoreUnexpectedTest.java @@ -36,7 +36,7 @@ public class IgnoreUnexpectedTest { Handler handler = mock(Handler.class); logger.addHandler(handler); try { - assertThat(CabinType.Factory.fromValue(value)).isSameAs(expected); + assertThat(CabinType.Factory.fromValue(value)).isSameInstanceAs(expected); if (expected == null) { verify(handler).publish(any(LogRecord.class)); } else { diff --git a/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java b/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java index 0834a80..f221eda 100644 --- a/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java +++ b/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java @@ -86,8 +86,8 @@ public class HandlerPrePostInvokerTests extends TestCase { HandlerPostInvokerFactory postFact = (HandlerPostInvokerFactory)FactoryRegistry.getFactory(HandlerPostInvokerFactory.class); HandlerPreInvoker preInvoker = preFact.createHandlerPreInvoker(); HandlerPostInvoker postInvoker = postFact.createHandlerPostInvoker(); - 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); + assertThat(preInvoker).isInstanceOf(org.apache.axis2.jaxws.handler.impl.HandlerPreInvokerImpl.class); + assertThat(postInvoker).isInstanceOf(org.apache.axis2.jaxws.handler.impl.HandlerPostInvokerImpl.class); } /** diff --git a/modules/transport/jms/src/test/java/org/apache/axis2/transport/jms/JMSUtilsTest.java b/modules/transport/jms/src/test/java/org/apache/axis2/transport/jms/JMSUtilsTest.java index 431c5bd..da548b7 100644 --- a/modules/transport/jms/src/test/java/org/apache/axis2/transport/jms/JMSUtilsTest.java +++ b/modules/transport/jms/src/test/java/org/apache/axis2/transport/jms/JMSUtilsTest.java @@ -35,6 +35,6 @@ public class JMSUtilsTest { Session session = mock(Session.class); MessageConsumer consumer = mock(MessageConsumer.class); when(session.createConsumer(queue, null)).thenReturn(consumer); - assertThat(JMSUtils.createConsumer(session, queue, null)).isSameAs(consumer); + assertThat(JMSUtils.createConsumer(session, queue, null)).isSameInstanceAs(consumer); } } diff --git a/pom.xml b/pom.xml index f4319f8..0e77f73b 100644 --- a/pom.xml +++ b/pom.xml @@ -775,7 +775,7 @@ <dependency> <groupId>com.google.truth</groupId> <artifactId>truth</artifactId> - <version>0.42</version> + <version>1.1</version> </dependency> <dependency> <groupId>org.apache.ws.commons.axiom</groupId>