diff --git a/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/InstitutionControllerTest.java b/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/InstitutionControllerTest.java index 35808785..eb59dab9 100644 --- a/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/InstitutionControllerTest.java +++ b/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/InstitutionControllerTest.java @@ -45,7 +45,7 @@ class InstitutionControllerTest { private InstitutionService institutionServiceMock; - /*@Test + @Test void search() throws Exception { // given final String search = "search"; @@ -55,7 +55,7 @@ void search() throws Exception { .thenReturn(new DummyInstitutionQueryResult()); // when mvc.perform(MockMvcRequestBuilders - .get(BASE_URL + "/") + .get(BASE_URL) .queryParam("search", search) .queryParam("page", page) .queryParam("limit", limit) @@ -81,9 +81,9 @@ void search() throws Exception { verify(institutionServiceMock, times(1)) .search(Optional.of(search), Integer.parseInt(page), Integer.parseInt(limit)); verifyNoMoreInteractions(institutionServiceMock); - }*/ + } - /*@Test + @Test void searchFiltered() throws Exception { // given final String search = "search"; @@ -94,7 +94,7 @@ void searchFiltered() throws Exception { .thenReturn(new DummyInstitutionQueryResult()); // when mvc.perform(MockMvcRequestBuilders - .get(BASE_URL + "/") + .get(BASE_URL) .queryParam("search", search) .queryParam("page", page) .queryParam("limit", limit) @@ -121,17 +121,17 @@ void searchFiltered() throws Exception { verify(institutionServiceMock, times(1)) .search(Optional.of(search), categories, Integer.parseInt(page), Integer.parseInt(limit)); verifyNoMoreInteractions(institutionServiceMock); - }*/ + } - /*@Test + @Test void search_defaultInputParams() throws Exception { // given when(institutionServiceMock.search(any(), anyInt(), anyInt())) .thenReturn(new DummyInstitutionQueryResult()); // when mvc.perform(MockMvcRequestBuilders - .get(BASE_URL + "/") + .get(BASE_URL) .contentType(APPLICATION_JSON_VALUE) .accept(APPLICATION_JSON_VALUE)) .andExpect(status().isOk()) @@ -154,7 +154,7 @@ void search_defaultInputParams() throws Exception { verify(institutionServiceMock, times(1)) .search(Optional.empty(), 1, 10); verifyNoMoreInteractions(institutionServiceMock); - }*/ + } @Test diff --git a/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/IvassControllerTest.java b/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/IvassControllerTest.java index 685290e4..9f0a669a 100644 --- a/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/IvassControllerTest.java +++ b/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/IvassControllerTest.java @@ -94,7 +94,7 @@ void findInsuranceNyOriginIdNotFound() throws Exception { /** * Method under test: {@link IvassController#search(Optional, Integer, Integer)} */ - /*@Test + @Test void search() throws Exception { // given final String search = "search"; @@ -104,7 +104,7 @@ void search() throws Exception { .thenReturn(new DummyInsuranceQueryResult()); // when mvc.perform(MockMvcRequestBuilders - .get(BASE_URL + "/") + .get(BASE_URL) .queryParam("search", search) .queryParam("page", page) .queryParam("limit", limit) @@ -125,19 +125,19 @@ void search() throws Exception { verify(ivassService, times(1)) .search(Optional.of(search), Integer.parseInt(page), Integer.parseInt(limit)); verifyNoMoreInteractions(ivassService); - }*/ + } /** * Method under test: {@link IvassController#search(Optional, Integer, Integer)} */ - /*@Test + @Test void search_defaultInputParams() throws Exception { // given when(ivassService.search(any(), anyInt(), anyInt())) .thenReturn(new DummyInsuranceQueryResult()); // when mvc.perform(MockMvcRequestBuilders - .get(BASE_URL + "/") + .get(BASE_URL) .contentType(APPLICATION_JSON_VALUE) .accept(APPLICATION_JSON_VALUE)) .andExpect(status().isOk()) @@ -154,5 +154,5 @@ void search_defaultInputParams() throws Exception { verify(ivassService, times(1)) .search(Optional.empty(), 1, 10); verifyNoMoreInteractions(ivassService); - }*/ + } } \ No newline at end of file diff --git a/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/StationControllerTest.java b/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/StationControllerTest.java index ad7bf2b2..dcbbd03f 100644 --- a/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/StationControllerTest.java +++ b/web/src/test/java/it/pagopa/selfcare/party/registry_proxy/web/controller/StationControllerTest.java @@ -43,7 +43,7 @@ class StationControllerTest { @MockBean private StationService stationServiceMock; - /*@Test + @Test void search() throws Exception { // given final String search = "search"; @@ -53,7 +53,7 @@ void search() throws Exception { .thenReturn(new DummyPDNDQueryResult()); // when mvc.perform(MockMvcRequestBuilders - .get(BASE_URL + "/") + .get(BASE_URL) .queryParam("search", search) .queryParam("page", page) .queryParam("limit", limit) @@ -73,16 +73,16 @@ void search() throws Exception { verify(stationServiceMock, times(1)) .search(Optional.of(search), Integer.parseInt(page), Integer.parseInt(limit)); verifyNoMoreInteractions(stationServiceMock); - }*/ + } - /*@Test + @Test void search_defaultInputParams() throws Exception { // given when(stationServiceMock.search(any(), anyInt(), anyInt())) .thenReturn(new DummyPDNDQueryResult()); // when mvc.perform(MockMvcRequestBuilders - .get(BASE_URL + "/") + .get(BASE_URL) .contentType(APPLICATION_JSON_VALUE) .accept(APPLICATION_JSON_VALUE)) .andExpect(status().isOk()) @@ -99,7 +99,7 @@ void search_defaultInputParams() throws Exception { verify(stationServiceMock, times(1)) .search(Optional.empty(), 1, 10); verifyNoMoreInteractions(stationServiceMock); - }*/ + } @Test void findStation() throws Exception {