From 90aed14ddc9b5f7fd3a24470fd98591bacf243d2 Mon Sep 17 00:00:00 2001 From: Haoming Yin Date: Mon, 6 Mar 2017 21:38:25 +1300 Subject: [PATCH] Updated test file for unit test - added race size represented the number of teams who would compete in a race - changed teams to an array containing maps of each team within team name and boat velocity #test #story[8] #story[6] --- src/test/java/seng302/valid.json | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/test/java/seng302/valid.json b/src/test/java/seng302/valid.json index 21b0c2dc..a6246d61 100644 --- a/src/test/java/seng302/valid.json +++ b/src/test/java/seng302/valid.json @@ -1,5 +1,13 @@ { - "time-scale": 100, - "race-name": "IDK", - "teams":["team1","team2","team3"] -} \ No newline at end of file + "race-name": "AC35", + "time-scale": 1, + "race-size": 2, + "teams": [ + {"team-name": "Oracle Team USA", "velocity": 20.9}, + {"team-name": "Artemis Racing", "velocity": 18.3}, + {"team-name": "Emirates Team New Zealand", "velocity": 21.5}, + {"team-name": "Groupama Team France","velocity": 19.9}, + {"team-name": "Land Rover BAR", "velocity": 17.6}, + {"team-name": "SoftBank Team Japan", "velocity": 16.6} + ] +}