@Test public void testGetCurrentSprint() throws Throwable { selectTestRelease(); Assert.assertEquals(1002, sprintService.getCurrentSprint().getId()); }
public synchronized Entity getCurrentSprint() { if(sprintSelector.values == null) { return null; } for(Entity sprint: sprintSelector.values) { if(isCurrentSprint(sprint)) { return sprint; } } return null; }
SprintService implements PersistentStateComponent<Element>, ServerTypeListener, CachingEntityListener { public synchronized Entity getCurrentSprint() { if(sprintSelector.values == null) { return null; } for(Entity sprint: sprintSelector.values) { if(isCurrentSprint(sprint)) { return sprint; } } return null; } }
SprintService implements PersistentStateComponent<Element>, ServerTypeListener, CachingEntityListener { public synchronized Entity getCurrentSprint() { if(sprintSelector.values == null) { return null; } for(Entity sprint: sprintSelector.values) { if(isCurrentSprint(sprint)) { return sprint; } } return null; } SprintService(Project project); }
SprintService implements PersistentStateComponent<Element>, ServerTypeListener, CachingEntityListener { public synchronized Entity getCurrentSprint() { if(sprintSelector.values == null) { return null; } for(Entity sprint: sprintSelector.values) { if(isCurrentSprint(sprint)) { return sprint; } } return null; } SprintService(Project project); Element getState(); void loadState(Element state); @Override void connectedTo(ServerType serverType); synchronized Entity getRelease(); synchronized Entity getSprint(); synchronized Entity getTeam(); void addListener(Listener listener); void removeListener(Listener listener); synchronized void selectRelease(final Entity release); synchronized void selectSprint(Entity sprint); synchronized void selectTeam(Entity team); synchronized Entity getCurrentSprint(); synchronized EntityList getTeams(); EntityList getSprints(); EntityList getReleases(); static boolean isSameTense(Entity sprint1, Entity sprint2); static boolean isCurrentSprint(Entity sprint); static long distance(long now, Entity entity); @Override Entity lookup(final EntityRef ref); @Override void entityLoaded(Entity entity, Event event); @Override void entityNotFound(EntityRef ref, boolean removed); }
SprintService implements PersistentStateComponent<Element>, ServerTypeListener, CachingEntityListener { public synchronized Entity getCurrentSprint() { if(sprintSelector.values == null) { return null; } for(Entity sprint: sprintSelector.values) { if(isCurrentSprint(sprint)) { return sprint; } } return null; } SprintService(Project project); Element getState(); void loadState(Element state); @Override void connectedTo(ServerType serverType); synchronized Entity getRelease(); synchronized Entity getSprint(); synchronized Entity getTeam(); void addListener(Listener listener); void removeListener(Listener listener); synchronized void selectRelease(final Entity release); synchronized void selectSprint(Entity sprint); synchronized void selectTeam(Entity team); synchronized Entity getCurrentSprint(); synchronized EntityList getTeams(); EntityList getSprints(); EntityList getReleases(); static boolean isSameTense(Entity sprint1, Entity sprint2); static boolean isCurrentSprint(Entity sprint); static long distance(long now, Entity entity); @Override Entity lookup(final EntityRef ref); @Override void entityLoaded(Entity entity, Event event); @Override void entityNotFound(EntityRef ref, boolean removed);  }