Commit 4586a85a by Johannes Edmeier

Fix NoHttpMessageConverter error in ms teams notifier

parent 9bf54c32
......@@ -92,7 +92,7 @@ public class MicrosoftTeamsNotifier extends AbstractEventNotifier {
return;
}
this.restTemplate.postForObject(webhookUrl, message, Void.class);
this.restTemplate.postForEntity(webhookUrl, message, Void.class);
}
@Override
......
......@@ -51,7 +51,7 @@ public class MicrosoftTeamsNotifierTest {
notifier.doNotify(event);
verify(mockRestTemplate).postForObject(eq(URI.create("http://example.com")),
verify(mockRestTemplate).postForEntity(eq(URI.create("http://example.com")),
any(Message.class), eq(Void.class));
}
......@@ -61,7 +61,7 @@ public class MicrosoftTeamsNotifierTest {
notifier.doNotify(event);
verify(mockRestTemplate).postForObject(eq(URI.create("http://example.com")),
verify(mockRestTemplate).postForEntity(eq(URI.create("http://example.com")),
any(Message.class), eq(Void.class));
}
......@@ -72,7 +72,7 @@ public class MicrosoftTeamsNotifierTest {
notifier.doNotify(event);
verify(mockRestTemplate).postForObject(eq(URI.create("http://example.com")),
verify(mockRestTemplate).postForEntity(eq(URI.create("http://example.com")),
any(Message.class), eq(Void.class));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment