ARTEMIS-3698 fix test

When copying message properties from the core message to the OpenWire
message we intentially omit any properties starting with `_AMQ` and
`__HDR_`. However, we were effectively negating that logic because we
copied the marshalled properties directly to the message without any
filtering. Now that we no longer copy the marshalled properties directly
to the message the test breaks because it expects properties starting
with `__HDR_`. This commit fixes the test by removing those
expectations. The test is still valid because the message is still
receieved rather than being swallowed due to an exception (which was the
original problem).
This commit is contained in:
Justin Bertram 2022-03-04 11:31:15 -06:00
parent e949e3843b
commit f6372d8443
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 0 additions and 3 deletions

View File

@ -1810,9 +1810,6 @@ public class SimpleOpenWireTest extends BasicOpenWireTest {
connection.start();
TextMessage messageReceived = (TextMessage) messageConsumer.receive(5000);
assertNotNull(messageReceived);
assertEquals(BROKER_PATH, messageReceived.getStringProperty("__HDR_BROKER_PATH"));
assertEquals(CLUSTER, messageReceived.getStringProperty("__HDR_CLUSTER"));
assertEquals(USER_ID, messageReceived.getStringProperty("__HDR_USER_ID"));
}
}