We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1858176 commit 27d5241Copy full SHA for 27d5241
test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java
@@ -179,13 +179,7 @@ public void testDeadLetterPerMessageTTLRemoved() throws Exception {
179
channel.queueBind(TEST_QUEUE_NAME, "amq.direct", "test");
180
channel.queueBind(DLQ, DLX, "test");
181
182
- final BasicProperties props =
183
- new BasicProperties() {{
184
- setContentType("application/octet-stream");
185
- setDeliveryMode(1);
186
- setPriority(0);
187
- setExpiration("100");
188
- }};
+ final BasicProperties props = MessageProperties.BASIC.builder().expiration("100").build();
189
publish(props, "test message");
190
191
// The message's expiration property should have been removed, thus
0 commit comments