Added tests for the RaceTimerController #test #story[16]

This commit is contained in:
Michael Rausch
2017-03-23 14:18:27 +13:00
parent 2384013139
commit 24f9607e5a
2 changed files with 28 additions and 2 deletions
@@ -23,7 +23,7 @@ public class RaceTimerController implements Initializable{
* @param time the time in seconds
* @return a formatted string
*/
private String convertTimeToMinutesSeconds(int time){
public String convertTimeToMinutesSeconds(int time){
if (time < 0){
return String.format("-%02d:%02d", (time * -1) / 60, (time * -1)% 60);
}
@@ -34,7 +34,7 @@ public class RaceTimerController implements Initializable{
* Controller to control the race timer
* @param race the race the timer is timing
*/
RaceTimerController(Race race){
public RaceTimerController(Race race){
this.race = race;
}