- Timestamp:
- 02/13/20 16:30:49 (5 years ago)
- Location:
- timeline/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
timeline/src/main/java/geniusweb/progress/ProgressRounds.java
r1 r12 45 45 public Date getTerminationTime() { 46 46 return endtime; 47 } 48 49 /** 50 * 51 * @return the current round. First round is 0. It is not recommended to use 52 * this, as this may make your code working with rounds only. 53 */ 54 public Integer getCurrentRound() { 55 return currentRound; 56 } 57 58 /** 59 * 60 * @return total number of rounds. It is not recommended to use this, as 61 * this may make your code working with rounds only. 62 */ 63 public Integer getTotalRounds() { 64 return duration; 47 65 } 48 66 -
timeline/src/test/java/geniusweb/progress/ProgressRoundsTest.java
r1 r12 20 20 21 21 import geniusweb.deadline.DeadlineRounds; 22 import geniusweb.progress.Progress;23 import geniusweb.progress.ProgressRounds;24 import geniusweb.progress.ProgressTime;25 22 import tudelft.utilities.junit.GeneralTests; 26 23 … … 71 68 72 69 @Test 70 public void testCurrentRound() { 71 assertEquals((Integer) 0, progress.getCurrentRound()); 72 } 73 74 @Test 73 75 public void testAdvance() { 74 76 ProgressRounds p = progress;
Note:
See TracChangeset
for help on using the changeset viewer.