gaoran10 commented on code in PR #16513:
URL: https://github.com/apache/pulsar/pull/16513#discussion_r917720648
##########
pulsar-broker/src/test/java/org/apache/pulsar/client/api/DeadLetterTopicTest.java:
##########
@@ -794,4 +795,16 @@ public void
testDeadLetterTopicWithInitialSubscriptionAndMultiConsumers() throws
otherConsumer.close();
consumer.close();
}
+
+ @Test
+ public void testDeadLetterPolicyDeserialize() throws Exception {
+ ConsumerBuilder<String> consumerBuilder =
pulsarClient.newConsumer(Schema.STRING);
+ DeadLetterPolicy policy =
+
DeadLetterPolicy.builder().deadLetterTopic("a").retryLetterTopic("a").initialSubscriptionName("a")
+ .maxRedeliverCount(1).build();
+ consumerBuilder.deadLetterPolicy(policy);
+ Map<String, Object> config = new HashMap<>();
+ consumerBuilder.loadConf(config);
Review Comment:
Do you want to add `policy` in the config map?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]