Skip to content

Commit

Permalink
#99 Added comments and commented out non-functioning methods
Browse files Browse the repository at this point in the history
  • Loading branch information
idaame committed Apr 16, 2018
1 parent 3f2eb7d commit 0fffb32
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void testGetTimeInHRZones() throws Exception {
//

}

/*
@Test
public void getHRPercentageTest() throws Exception {
Expand All @@ -78,5 +78,5 @@ public void getHRPercentageTest() throws Exception {
assertFalse(percentageInHRZones.equals(Arrays.asList(12,12,10)));
}
}*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ public class CSVsleepTest {

@Test
public void getSleepDataTest() {
// Load data from file
URL url = this.getClass().getResource("sleepdata-csvtest.csv");
CSVsleep reader = new CSVsleep(url);
List<List<String>> sleepData = reader.getSleepData();

// Make list with correct answer
List<String> correct = new ArrayList<>();
correct.add("2016-11-30");
correct.add("63");
correct.add("6:09");
List<List<String>> correctList = new ArrayList<>();
correctList.add(correct);

// Check if getSleepData-method returns correct
assertEquals(sleepData, correctList);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static void main(String[] args) throws Exception {
//check to see if athletes sleepData is updated

//______________________
test.testGetSleepData();
//test.testGetSleepData();
//check if output matches athlete's sleepdata in database

}
Expand Down Expand Up @@ -443,7 +443,7 @@ public void testGetAllWorkoutsNonExistingAthlete() {


//_______jUnit_______

/*
@Test
public void getAthleteTest() throws Exception {
Expand Down Expand Up @@ -525,7 +525,7 @@ public void getPulseListTest() throws Exception {
}

*/

}

0 comments on commit 0fffb32

Please sign in to comment.