qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject [14/50] [abbrv] qpid-proton git commit: PROTON-711: fix test compilation under Java6
Date Fri, 14 Nov 2014 11:03:23 GMT
PROTON-711: fix test compilation under Java6

git-svn-id: https://svn.apache.org/repos/asf/qpid/proton/trunk@1631911 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/7c9abd07
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/7c9abd07
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/7c9abd07

Branch: refs/heads/examples
Commit: 7c9abd071aa199c140cdcfd21f1d580e83045d10
Parents: 960eeff
Author: Robert Gemmell <robbie@apache.org>
Authored: Tue Oct 14 22:21:26 2014 +0000
Committer: Robert Gemmell <robbie@apache.org>
Committed: Tue Oct 14 22:21:26 2014 +0000

----------------------------------------------------------------------
 .../apache/qpid/proton/jms/JMSMappingOutboundTransformerTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/7c9abd07/contrib/proton-jms/src/test/java/org/apache/qpid/proton/jms/JMSMappingOutboundTransformerTest.java
----------------------------------------------------------------------
diff --git a/contrib/proton-jms/src/test/java/org/apache/qpid/proton/jms/JMSMappingOutboundTransformerTest.java
b/contrib/proton-jms/src/test/java/org/apache/qpid/proton/jms/JMSMappingOutboundTransformerTest.java
index 2bb5209..c9d472b 100644
--- a/contrib/proton-jms/src/test/java/org/apache/qpid/proton/jms/JMSMappingOutboundTransformerTest.java
+++ b/contrib/proton-jms/src/test/java/org/apache/qpid/proton/jms/JMSMappingOutboundTransformerTest.java
@@ -337,7 +337,7 @@ public class JMSMappingOutboundTransformerTest
     private TextMessage createMockTextMessage() throws Exception
     {
         TextMessage mockTextMessage = Mockito.mock(TextMessage.class);
-        Mockito.when(mockTextMessage.getPropertyNames()).thenReturn(Collections.emptyEnumeration());
+        Mockito.when(mockTextMessage.getPropertyNames()).thenReturn(Collections.enumeration(Collections.emptySet()));
 
         return mockTextMessage;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message