Skip to content

Commit

Permalink
[T] Test StJohnsCourse
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Oct 5, 2019
1 parent 794efdf commit cbbeb5a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.junit.jupiter.api.*;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Scanner;
Expand Down Expand Up @@ -67,9 +68,14 @@ void veracross() throws IOException, VeracrossException
void veracrossCourses() throws IOException
{
// Get courses
List<VeracrossCourse> courses = veracross.getCoursesWithGrading();
List<VeracrossCourse> courses = veracross.getCourses();
log(courses);

// Convert to st johns course
List<StJohnsCourse> stJohnsCourses = new ArrayList<>();
courses.forEach(course -> stJohnsCourses.add(new StJohnsCourse(course)));
log(stJohnsCourses);

// Get ready to test assignments
this.courses = courses;
}
Expand Down

0 comments on commit cbbeb5a

Please sign in to comment.