@Test public void testGetTeam() { Entity team = teamService.getTeam("The Team", 1001); Assert.assertEquals(101, team.getId()); teamService.getTeam("The Team", 1001); }
public Entity getTeam(String teamName, int releaseId) { List<Entity> teams = getTeams(teamName); for(Entity team: teams) { if(team.getPropertyValue("release-id").equals(String.valueOf(releaseId))) { return team; } } return null; }
TeamService extends AbstractCachingEntityService<String> { public Entity getTeam(String teamName, int releaseId) { List<Entity> teams = getTeams(teamName); for(Entity team: teams) { if(team.getPropertyValue("release-id").equals(String.valueOf(releaseId))) { return team; } } return null; } }
TeamService extends AbstractCachingEntityService<String> { public Entity getTeam(String teamName, int releaseId) { List<Entity> teams = getTeams(teamName); for(Entity team: teams) { if(team.getPropertyValue("release-id").equals(String.valueOf(releaseId))) { return team; } } return null; } TeamService(Project project, EntityService entityService); }
TeamService extends AbstractCachingEntityService<String> { public Entity getTeam(String teamName, int releaseId) { List<Entity> teams = getTeams(teamName); for(Entity team: teams) { if(team.getPropertyValue("release-id").equals(String.valueOf(releaseId))) { return team; } } return null; } TeamService(Project project, EntityService entityService); Entity getTeam(String teamName, int releaseId); List<Entity> getTeams(String teamName); EntityList getMultipleTeams(List<String> teamNames); }
TeamService extends AbstractCachingEntityService<String> { public Entity getTeam(String teamName, int releaseId) { List<Entity> teams = getTeams(teamName); for(Entity team: teams) { if(team.getPropertyValue("release-id").equals(String.valueOf(releaseId))) { return team; } } return null; } TeamService(Project project, EntityService entityService); Entity getTeam(String teamName, int releaseId); List<Entity> getTeams(String teamName); EntityList getMultipleTeams(List<String> teamNames);  }