diff --git a/src/test/java/no/entur/uttu/export/messaging/MessagingServiceTest.java b/src/test/java/no/entur/uttu/export/messaging/MessagingServiceTest.java index 0af864ec..cb3d322a 100644 --- a/src/test/java/no/entur/uttu/export/messaging/MessagingServiceTest.java +++ b/src/test/java/no/entur/uttu/export/messaging/MessagingServiceTest.java @@ -122,21 +122,4 @@ public void testNotifyExport() { pubsubMessage.getData().toString(StandardCharsets.UTF_8) ); } - - @Test - public void testNotifyExport2() { - messagingService.notifyExport(TEST_CODESPACE, TEST_EXPORT_FILE_NAME); - - List 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) - ); - } }