qpid-broker-j git commit: QPID-7434: [Java Broker] Remove invalid test

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

qpid-broker-j git commit: QPID-7434: [Java Broker] Remove invalid test

lquack
Repository: qpid-broker-j
Updated Branches:
  refs/heads/master 0c180ff35 -> 4f43a9bc7


QPID-7434: [Java Broker] Remove invalid test


Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/4f43a9bc
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/4f43a9bc
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/4f43a9bc

Branch: refs/heads/master
Commit: 4f43a9bc760574639311f0ad773105c7dde879ae
Parents: 0c180ff
Author: Lorenz Quack <[hidden email]>
Authored: Fri Aug 11 10:11:33 2017 +0100
Committer: Lorenz Quack <[hidden email]>
Committed: Fri Aug 11 10:12:40 2017 +0100

----------------------------------------------------------------------
 .../PropertyConverter_Internal_to_v0_8Test.java | 25 --------------------
 1 file changed, 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/4f43a9bc/broker-plugins/amqp-0-8-protocol/src/test/java/org/apache/qpid/server/protocol/v0_8/PropertyConverter_Internal_to_v0_8Test.java
----------------------------------------------------------------------
diff --git a/broker-plugins/amqp-0-8-protocol/src/test/java/org/apache/qpid/server/protocol/v0_8/PropertyConverter_Internal_to_v0_8Test.java b/broker-plugins/amqp-0-8-protocol/src/test/java/org/apache/qpid/server/protocol/v0_8/PropertyConverter_Internal_to_v0_8Test.java
index 6915812..b279bf6 100644
--- a/broker-plugins/amqp-0-8-protocol/src/test/java/org/apache/qpid/server/protocol/v0_8/PropertyConverter_Internal_to_v0_8Test.java
+++ b/broker-plugins/amqp-0-8-protocol/src/test/java/org/apache/qpid/server/protocol/v0_8/PropertyConverter_Internal_to_v0_8Test.java
@@ -29,7 +29,6 @@ import static org.mockito.Mockito.when;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
-import java.util.UUID;
 
 import org.apache.qpid.server.message.AMQMessageHeader;
 import org.apache.qpid.server.message.internal.InternalMessage;
@@ -251,30 +250,6 @@ public class PropertyConverter_Internal_to_v0_8Test extends QpidTestCase
         assertEquals("Unexpected application properties", properties, new HashMap<>(convertedHeaders));
     }
 
-    public void testHeadersConversionWithUnsupportedTypes()
-    {
-        final Map<String, Object> properties = Collections.singletonMap("uuidProperty", UUID.randomUUID());
-        final AMQMessageHeader header = mock(AMQMessageHeader.class);
-        when(header.getHeaderNames()).thenReturn(properties.keySet());
-        doAnswer(invocation ->
-                 {
-                     final String originalArgument = (String) (invocation.getArguments())[0];
-                     return properties.get(originalArgument);
-                 }).when(header).getHeader(any(String.class));
-        InternalMessage originalMessage = createTestMessage(header);
-
-        try
-        {
-            _messageConverter.convert(originalMessage, _addressSpace);
-            fail("Expected exception not thrown");
-        }
-        catch (MessageConversionException e)
-        {
-            // pass
-        }
-    }
-
-
     public void testHeadersConversionWhenKeyLengthExceeds255()
     {
         final Map<String, Object> properties = Collections.singletonMap(generateLongString(), "test");


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...