use of ca.dal.cs.athletemonitor.athletemonitor.Exercise in project SEProject by NicholasBarreyre.
the class TestingHelper method addTestUserExercises.
/**
* Test helper to add test exercises to testuser
*/
public static void addTestUserExercises() {
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference usersReference = database.getReference("users/testuser");
ArrayList<Exercise> testExercises = new ArrayList<>();
testExercises.add(testExercise1);
testExercises.add(testExercise2);
testExercises.add(testExercise3);
usersReference.child("userExercises").setValue(testExercises);
}
Aggregations