activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cshan...@apache.org
Subject activemq git commit: https://issues.apache.org/jira/browse/AMQ-6478
Date Tue, 25 Oct 2016 10:47:58 GMT
Repository: activemq
Updated Branches:
  refs/heads/master 24a79413c -> 114706a7b


https://issues.apache.org/jira/browse/AMQ-6478

Fixing compilation error with JDK 8


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/114706a7
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/114706a7
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/114706a7

Branch: refs/heads/master
Commit: 114706a7b4fb0789dbc73dc6f19ab1d3ab07e5bf
Parents: 24a7941
Author: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Authored: Tue Oct 25 06:47:16 2016 -0400
Committer: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Committed: Tue Oct 25 06:47:43 2016 -0400

----------------------------------------------------------------------
 .../test/java/org/apache/activemq/ra/ServerSessionImplTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/114706a7/activemq-ra/src/test/java/org/apache/activemq/ra/ServerSessionImplTest.java
----------------------------------------------------------------------
diff --git a/activemq-ra/src/test/java/org/apache/activemq/ra/ServerSessionImplTest.java b/activemq-ra/src/test/java/org/apache/activemq/ra/ServerSessionImplTest.java
index 322defc..927a9b3 100644
--- a/activemq-ra/src/test/java/org/apache/activemq/ra/ServerSessionImplTest.java
+++ b/activemq-ra/src/test/java/org/apache/activemq/ra/ServerSessionImplTest.java
@@ -42,6 +42,7 @@ import org.apache.activemq.command.MessageDispatch;
 import org.apache.activemq.command.MessageId;
 import org.apache.activemq.util.Wait;
 import org.hamcrest.Description;
+import org.hamcrest.Matchers;
 import org.jmock.Expectations;
 import org.jmock.Mockery;
 import org.jmock.api.Action;
@@ -151,7 +152,7 @@ public class ServerSessionImplTest {
                 allowing(messageEndpointFactory).createEndpoint(with(any(XAResource.class)));
                 will(returnValue(messageEndpoint));
 
-                allowing(workManager).scheduleWork((Work) with(anything()), with(any(long.class)),
with(any(ExecutionContext.class)),
+                allowing(workManager).scheduleWork((Work) with(Matchers.instanceOf(Work.class)),
with(any(long.class)), with(any(ExecutionContext.class)),
                     with(any(WorkListener.class)));
                 will(new Action() {
                     @Override
@@ -164,7 +165,7 @@ public class ServerSessionImplTest {
                     }
                 });
 
-                allowing(messageEndpoint).beforeDelivery((Method) with(anything()));
+                allowing(messageEndpoint).beforeDelivery((Method) with(Matchers.instanceOf(Method.class)));
                 allowing(messageEndpoint).onMessage(with(any(javax.jms.Message.class)));
                 will(new Action() {
                     @Override


Mime
View raw message