Test run fail using TestNG and sure-fire plugin
@Test public void testSendWebhook() throws KafkaConsumerException { PodamFactory factory = new PodamFactoryImpl(); WebhookEventDTO<MeetingEventPayload> webhookEventDTO = factory.manufacturePojo(WebhookEventDTO.class, MeetingEventPayload.class); Mockito.when(u2CBizService.getWebhookFeatureToggleEndpoint(any(), any(), eq(“webhook-engine”), any())).thenReturn(“https://www.ciscospark.com/v1”); Mockito.doNothing().when(webhookFeignClient).sendWebhookEvent(any(), any(), any()); webhookRemoteService.sendWebhook(webhookEventDTO, “trackingId”); Mockito.verify(webhookFeignClient, Mockito.times(1)).sendWebhookEvent(any(), any(), any()); } When I run this method directly in IntelliJ IDEA, it works fine. However, when I run it through Maven test, it fails, showing the […]