Skip to content

Commit

Permalink
added review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kreloaded committed Aug 30, 2023
1 parent 3caac81 commit fc6a6f8
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.salessparrow.api.unit.filters;

import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.*;
Expand Down Expand Up @@ -59,23 +58,20 @@ void testRequestBodySanitization() throws Exception {
mockCommonRequestBehaviors();
sanitizationFilter.doFilter(request, response, filterChain);
verify(request).getReader();
assertTrue(true, "Request body should be read without exceptions.");
}

@Test
void testRequestParamsSanitization() throws Exception {
mockCommonRequestBehaviors();
sanitizationFilter.doFilter(request, response, filterChain);
verify(request).getParameterMap();
assertTrue(true, "Request parameters should be read without exceptions.");
}

@Test
void testRequestHeadersSanitization() throws Exception {
mockCommonRequestBehaviors();
sanitizationFilter.doFilter(request, response, filterChain);
verify(request).getHeaderNames();
assertTrue(true, "Request headers should be read without exceptions.");
}

@Test
Expand Down

0 comments on commit fc6a6f8

Please sign in to comment.