void shouldFailIfNoTemplateHandler()

in ddm-notification-service/src/it/java/com/epam/digital/data/platform/notification/controller/NotificationTemplateControllerTest.java [110:125]


  void shouldFailIfNoTemplateHandler() throws Exception {
    var title = "Title";
    var content = "<html><h1>Hello</h1></html>";
    var inputDto = new SaveNotificationTemplateInputDto();
    inputDto.setTitle(title);
    inputDto.setContent(content);
    mockMvc
        .perform(
            put(BASE_URL + "/test:template")
                .header("X-Access-Token", TOKEN)
                .contentType(MediaType.APPLICATION_JSON)
                .content(objectMapper.writeValueAsString(inputDto)))
        .andExpectAll(
            status().is(HttpStatus.INTERNAL_SERVER_ERROR_500),
            content().contentType(MediaType.APPLICATION_JSON));
  }