Skip to content

Commit 4fc0eb9

Browse files
committed
Fix checkstyle WebhookControllerWithInterceptorTest
1 parent 67e184e commit 4fc0eb9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/test/java/dev/vality/alerting/tg/bot/WebhookControllerWithInterceptorTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ void mappingExists_sanityCheck() {
6969
@Test
7070
void whenWebhookPosted_thenTestInterceptorInvokesTelegramSender() throws Exception {
7171
String json = """
72-
{ "status":"firing", "alerts":[ { "status":"firing" } ] }
73-
""";
72+
{ "status":"firing", "alerts":[ { "status":"firing" } ] }
73+
""";
7474

7575
mvc.perform(post("/alertmanager/webhook")
7676
.contentType(MediaType.APPLICATION_JSON)
@@ -90,7 +90,10 @@ static class TestMvcConfig implements WebMvcConfigurer {
9090
HandlerInterceptor webhookNotifyInterceptor() {
9191
return new HandlerInterceptor() {
9292
@Override
93-
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, @Nullable Exception ex) {
93+
public void afterCompletion(HttpServletRequest request,
94+
HttpServletResponse response,
95+
Object handler,
96+
@Nullable Exception ex) {
9497
if (request.getRequestURI().equals("/alertmanager/webhook") && response.getStatus() == 200) {
9598
telegramSender.send("alertmanager webhook handled");
9699
}

0 commit comments

Comments
 (0)