Skip to content

Commit

Permalink
Merge pull request #429 from AAFC-BICoE/32780_Update_search-messaging…
Browse files Browse the repository at this point in the history
…_library

32780 Update search-messaging library
  • Loading branch information
brandonandre authored Jan 25, 2024
2 parents cbf8eb1 + ff3ed9c commit 7856217
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dina-base-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<javers.version>6.13.0</javers.version>
<mybatis.version>2.2.2</mybatis.version>
<aafc.search.messaging.version>0.20</aafc.search.messaging.version>
<aafc.search.messaging.version>0.29</aafc.search.messaging.version>
<hypersistence-utils-hibernate-55.version>3.6.1</hypersistence-utils-hibernate-55.version>
<postgresql.version>42.4.3</postgresql.version>
<jsoup.version>1.15.3</jsoup.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@

@SpringBootTest(classes = {TestDinaBaseApp.class, MessageProducingServiceTest.TestConfig.class},
properties = {
"messaging.isProducer=true",
"dina.messaging.isProducer=true",
"rabbitmq.queue=que",
"rabbitmq.exchange=exchange",
"rabbitmq.routingkey=routingkey",
"rabbitmq.username=guest",
"rabbitmq.password=guest",
"rabbitmq.host=localhost",
"rabbitmq.port=49198"
"rabbitmq.host=localhost"
})
@ContextConfiguration(initializers = { PostgresTestContainerInitializer.class })
@DirtiesContext //it's an expensive test and we won't reuse the context
Expand Down Expand Up @@ -197,11 +194,10 @@ public static class Listener {

@RabbitListener(bindings = @QueueBinding(
value = @Queue(value = "que"),
exchange = @Exchange(value = "exchange", ignoreDeclarationExceptions = "true"),
key = "routingkey"),
exchange = @Exchange(value = "que", ignoreDeclarationExceptions = "true")),
containerFactory = "rabbitListenerContainerFactory"
)
public void processOrder(String data) {
public void processMessage(String data) {
messages.clear();
messages.add(data);
latch.countDown();
Expand Down

0 comments on commit 7856217

Please sign in to comment.