Unit test for ContextUtils, patch from YashchenkoN applied, This closes #302


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/76e1e8f5
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/76e1e8f5
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/76e1e8f5

Branch: refs/heads/3.1.x-fixes
Commit: 76e1e8f54ed41dd8736091fb889a69ec7918c588
Parents: 8bfe8f6
Author: Sergey Beryozkin <sberyoz...@gmail.com>
Authored: Fri Aug 11 12:36:37 2017 +0100
Committer: Sergey Beryozkin <sberyoz...@gmail.com>
Committed: Fri Aug 11 12:36:37 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/cxf/ws/addressing/ContextUtilsTest.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/76e1e8f5/core/src/test/java/org/apache/cxf/ws/addressing/ContextUtilsTest.java
----------------------------------------------------------------------
diff --git 
a/core/src/test/java/org/apache/cxf/ws/addressing/ContextUtilsTest.java 
b/core/src/test/java/org/apache/cxf/ws/addressing/ContextUtilsTest.java
index c66f3d2..54d5856 100644
--- a/core/src/test/java/org/apache/cxf/ws/addressing/ContextUtilsTest.java
+++ b/core/src/test/java/org/apache/cxf/ws/addressing/ContextUtilsTest.java
@@ -111,10 +111,10 @@ public class ContextUtilsTest {
         MessageImpl message = new MessageImpl();
 
         storeMAPs(maps, message, true);
-        assertThat(message.get(ADDRESSING_PROPERTIES_OUTBOUND), equalTo(maps));
+        
assertThat((AddressingProperties)message.get(ADDRESSING_PROPERTIES_OUTBOUND), 
equalTo(maps));
 
         storeMAPs(maps, message, false);
-        assertThat(message.get(ADDRESSING_PROPERTIES_INBOUND), equalTo(maps));
+        
assertThat((AddressingProperties)message.get(ADDRESSING_PROPERTIES_INBOUND), 
equalTo(maps));
     }
 
     @Test
@@ -212,4 +212,5 @@ public class ContextUtilsTest {
         assertThat(hasEmptyAction(maps), is(false));
         assertThat(maps.getAction(), notNullValue());
     }
+
 }

Reply via email to