Skip to content

Commit

Permalink
Removed duplicated test
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaturet committed May 15, 2024
1 parent 3a2105c commit 72cdce6
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,4 @@ public void testNotifyExport() {
);
}

@Test
public void testNotifyExport2() {
messagingService.notifyExport(TEST_CODESPACE, TEST_EXPORT_FILE_NAME);

List<PubsubMessage> messages = pubSubTemplate.pullAndAck(queueName, 1, false);
Assert.assertEquals(messages.size(), 1);
PubsubMessage pubsubMessage = messages.get(0);
String codespace = pubsubMessage
.getAttributesMap()
.get(PubSubMessagingService.HEADER_CHOUETTE_REFERENTIAL);
Assert.assertEquals("rb_" + TEST_CODESPACE, codespace);
Assert.assertEquals(
TEST_EXPORT_FILE_NAME,
pubsubMessage.getData().toString(StandardCharsets.UTF_8)
);
}
}

0 comments on commit 72cdce6

Please sign in to comment.