Skip to content

Commit

Permalink
#1012: remove findX test (already covered by PersistenceBase tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
clean-coder committed Oct 1, 2024
1 parent 274a02a commit 56b0017
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public Objective findObjectiveById(Long objectiveId, AuthorizationUser authoriza
return findByAnyId(objectiveId, authorizationUser, SELECT_OBJECTIVE_BY_ID, noResultException);
}

// TODO implement Test
public List<Objective> findObjectiveByTeamId(Long teamId) {
return getRepository().findObjectivesByTeamId(teamId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ void tearDown() {
TenantContext.setCurrentTenant(null);
}

@Test
void findAllShouldReturnListOfObjectives() {
List<Objective> objectives = objectivePersistenceService.findAll();

assertEquals(7, objectives.size());
}

@Test
void findObjectiveByIdShouldReturnObjectiveProperly() {
Objective objective = objectivePersistenceService.findObjectiveById(3L, authorizationUser, exception);
Expand Down

0 comments on commit 56b0017

Please sign in to comment.