BAEL-482 (#1379)
* Evaluation artical : Different Types of Bean Injection in Spring * Evaluation artical : Different Types of Bean Injection in Spring * Evaluation artical : Different Types of Bean Injection in Spring * BAEL-482 * Evaluation artical : Different Types of Bean Injection in Spring * Evaluation artical : Different Types of Bean Injection in Spring * Evaluation artical : Different Types of Bean Injection in Spring * Evaluation artical : Different Types of Bean Injection in Spring * BAEL-482 * Evaluation artical : Different Types of Bean Injection in Spring * BAEL-482 * BAEL-482
This commit is contained in:
parent
15f5037879
commit
46b1f93d52
|
@ -104,9 +104,9 @@ public class RedissonIntegrationTest {
|
||||||
RTopic<CustomMessage> subscribeTopic = client.getTopic("baeldung");
|
RTopic<CustomMessage> subscribeTopic = client.getTopic("baeldung");
|
||||||
subscribeTopic.addListener((channel, customMessage) -> future.complete(customMessage.getMessage()));
|
subscribeTopic.addListener((channel, customMessage) -> future.complete(customMessage.getMessage()));
|
||||||
|
|
||||||
RTopic<CustomMessage> receiveTopic = client.getTopic("baeldung");
|
RTopic<CustomMessage> publishTopic = client.getTopic("baeldung");
|
||||||
long clientsReceivedMessage
|
long clientsReceivedMessage
|
||||||
= receiveTopic.publish(new CustomMessage("This is a message"));
|
= publishTopic.publish(new CustomMessage("This is a message"));
|
||||||
|
|
||||||
assertEquals("This is a message", future.get());
|
assertEquals("This is a message", future.get());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue