Skip to content

Commit 27d5241

Browse files
author
Simon MacMullen
committed
Replace use of funny static initialiser and deprecated methods with the builder.
1 parent 1858176 commit 27d5241

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/src/com/rabbitmq/client/test/functional/DeadLetterExchange.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,7 @@ public void testDeadLetterPerMessageTTLRemoved() throws Exception {
179179
channel.queueBind(TEST_QUEUE_NAME, "amq.direct", "test");
180180
channel.queueBind(DLQ, DLX, "test");
181181

182-
final BasicProperties props =
183-
new BasicProperties() {{
184-
setContentType("application/octet-stream");
185-
setDeliveryMode(1);
186-
setPriority(0);
187-
setExpiration("100");
188-
}};
182+
final BasicProperties props = MessageProperties.BASIC.builder().expiration("100").build();
189183
publish(props, "test message");
190184

191185
// The message's expiration property should have been removed, thus

0 commit comments

Comments
 (0)