Skip to content

Commit

Permalink
umbau ObjectivePersistenceServiceIT: remove tests which are already c…
Browse files Browse the repository at this point in the history
…overed in PersistenceBaseTestIT, add additional test, make the tests readable
  • Loading branch information
clean-coder committed Oct 17, 2024
1 parent 31f45d8 commit 6721073
Show file tree
Hide file tree
Showing 2 changed files with 185 additions and 159 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ public String getModelName() {
return OBJECTIVE;
}

/**
* Get the number of Objectives of a Team in a Quarter. The underling sql looks like "select count(*) from objective
* where teamId = team.id and quarterId = quarter.id."
*
* @param team
* Team
* @param quarter
* Quarter
*
* @return number of Objectives of team in quarter
*/
public Integer countByTeamAndQuarter(Team team, Quarter quarter) {
return getRepository().countByTeamAndQuarter(team, quarter);
}
Expand Down
Loading

0 comments on commit 6721073

Please sign in to comment.