thenThrow(newRuntimeException("Simulating exception in processing message"));
{add(mock(Referenceable.class));}
});
when(atlasEntityStore.createOrUpdate(any(EntityStream.class),anyBoolean())).thenThrow(newRuntimeException("Simulating exception in processing message"));
hookConsumer.handleMessage(message);
hookConsumer.handleMessage(message);
verifyZeroInteractions(consumer);
verifyZeroInteractions(consumer);
...
@@ -122,24 +148,12 @@ public class NotificationHookConsumerTest {
...
@@ -122,24 +148,12 @@ public class NotificationHookConsumerTest {