From cbbeb5a7728a01290c0327fa69d6d88fd3116ee6 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 5 Oct 2019 15:00:17 -0400 Subject: [PATCH] [T] Test StJohnsCourse --- .../org/hydev/veracross/sdk/StJohnsHttpClientTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/hydev/veracross/sdk/StJohnsHttpClientTest.java b/src/test/java/org/hydev/veracross/sdk/StJohnsHttpClientTest.java index b0f7bf5..f73801e 100644 --- a/src/test/java/org/hydev/veracross/sdk/StJohnsHttpClientTest.java +++ b/src/test/java/org/hydev/veracross/sdk/StJohnsHttpClientTest.java @@ -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; @@ -67,9 +68,14 @@ void veracross() throws IOException, VeracrossException void veracrossCourses() throws IOException { // Get courses - List courses = veracross.getCoursesWithGrading(); + List courses = veracross.getCourses(); log(courses); + // Convert to st johns course + List stJohnsCourses = new ArrayList<>(); + courses.forEach(course -> stJohnsCourses.add(new StJohnsCourse(course))); + log(stJohnsCourses); + // Get ready to test assignments this.courses = courses; }