Skip to content

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
NyorJa authored and bglamadrid committed Oct 13, 2022
1 parent a892f54 commit 39ca266
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ void testReadDetails() {
param4.setValue("anyLogoImageURL");
Iterable<Param> params = List.of(param, param2, param3, param4);

when(paramsRepository.findParamsByCategory(eq("company"))).thenReturn(params);
when(paramsRepository.findParamsByCategory("company")).thenReturn(params);

CompanyDetailsPojo actual = sut.readDetails();


verify(paramsRepository, times(1)).findParamsByCategory(eq("company"));
verify(paramsRepository, times(1)).findParamsByCategory("company");

assertEquals("Piolo", actual.getName());
assertEquals("guwapo", actual.getDescription());
Expand Down

0 comments on commit 39ca266

Please sign in to comment.