Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Feb 3, 2025
1 parent 37c8b5a commit 0ca09df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ void search_emptyOrigin() {
verifyNoMoreInteractions(indexSearchService);
}

/*@Test
@Test
void search_notEmptyOrigin() {
// given
final int page = 0;
final int limit = 0;
final DummyAOOQueryResult queryResultMock = new DummyAOOQueryResult();
when(indexSearchService.findAll(anyInt(), anyInt(), any(), any()))
when(indexSearchService.findAll(anyInt(), anyInt(), any()))
.thenReturn(queryResultMock);
// when
final QueryResult<AOO> queryResult = aooService.findAll(page, limit);
// then
assertSame(queryResultMock, queryResult);
}*/
}

@Test
void findById_ipa() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ void search_emptyOrigin() {
verifyNoMoreInteractions(indexSearchService);
}

/*@Test
@Test
void search_notEmptyOrigin() {
final int page = 0;
final int limit = 0;
final Optional<String> taxCodeInvoicing = Optional.of("pippo");
final DummyUOQueryResult queryResultMock = new DummyUOQueryResult();
when(indexSearchService.findAll(anyInt(), anyInt(), any(), any()))
when(indexSearchService.fullTextSearch(any(), anyString(), anyInt(), anyInt()))
.thenReturn(queryResultMock);
// when
final QueryResult<UO> queryResult = uoService.findAll(taxCodeInvoicing, page, limit);
// then
assertSame(queryResultMock, queryResult);
}*/
}

@Test
void findById_ipa() {
Expand Down

0 comments on commit 0ca09df

Please sign in to comment.