diff --git a/src/test/java/com/epam/ta/reportportal/ws/controller/ProjectControllerTest.java b/src/test/java/com/epam/ta/reportportal/ws/controller/ProjectControllerTest.java index 022982f854..7a08a2e65a 100644 --- a/src/test/java/com/epam/ta/reportportal/ws/controller/ProjectControllerTest.java +++ b/src/test/java/com/epam/ta/reportportal/ws/controller/ProjectControllerTest.java @@ -532,7 +532,7 @@ void indexProjectData() throws Exception { arguments.put("analyzer_index", true); arguments.put("analyzer", "test_analyzer"); exchangeInfo.setArguments(arguments); - when(rabbitClient.getExchanges(any())).thenReturn(Collections.singletonList(exchangeInfo)); + when(rabbitClient.getExchanges(any(String.class))).thenReturn(Collections.singletonList(exchangeInfo)); mockMvc.perform(put("/v1/project/default_personal/index").with(token(oAuthHelper.getDefaultToken()))).andExpect(status().isOk()); @@ -547,7 +547,7 @@ void deleteIndex() throws Exception { arguments.put("analyzer_index", true); arguments.put("analyzer", "test_analyzer"); exchangeInfo.setArguments(arguments); - when(rabbitClient.getExchanges(any())).thenReturn(Collections.singletonList(exchangeInfo)); + when(rabbitClient.getExchanges(any(String.class))).thenReturn(Collections.singletonList(exchangeInfo)); mockMvc.perform(delete("/v1/project/default_personal/index").with(token(oAuthHelper.getDefaultToken()))).andExpect(status().isOk()); @@ -566,4 +566,4 @@ private void verifyProjectIndexEvent() { assertEquals(2L, event.getUserId().longValue()); assertEquals("default", event.getUserLogin()); } -} \ No newline at end of file +}