mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-01 12:19:14 +01:00
fix sonar issue squid:S1989: Exceptions should not be thrown from servlet methods
This commit is contained in:
@@ -47,7 +47,7 @@ class StaticResourceServletTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldReturnNotFound() throws IOException {
|
||||
void shouldReturnNotFound() {
|
||||
doReturn("/scm").when(request).getContextPath();
|
||||
doReturn("/scm/resource.txt").when(request).getRequestURI();
|
||||
doReturn(context).when(request).getServletContext();
|
||||
|
||||
Reference in New Issue
Block a user