Commit e774a11c authored by Robert Hitt's avatar Robert Hitt

Fixed tests

parent e0a8c8bc
Pipeline #1939 passed with stages
in 3 minutes
......@@ -7,6 +7,7 @@ import java.util.Calendar;
import io.realm.RealmList;
import srct.whatsopen.model.Facility;
import srct.whatsopen.model.Location;
import srct.whatsopen.model.MainSchedule;
import srct.whatsopen.model.OpenTimes;
import srct.whatsopen.model.Schedule;
......@@ -33,7 +34,8 @@ public class FacilityPresenterUnitTest {
MainSchedule mainSchedule = new MainSchedule(openTimesList,
"2017-01-09", "2017-01-15");
mFacility = new Facility("Chef's Table at Brooklyn Fare", "Whitetop Hall",
Location location = new Location("Whitetop Hall");
mFacility = new Facility("Chef's Table at Brooklyn Fare", location,
mainSchedule, new RealmList<>(), false, true, "");
now = Calendar.getInstance();
......
......@@ -7,6 +7,7 @@ import java.util.Calendar;
import io.realm.RealmList;
import srct.whatsopen.model.Facility;
import srct.whatsopen.model.Location;
import srct.whatsopen.model.MainSchedule;
import srct.whatsopen.model.OpenTimes;
import srct.whatsopen.model.SpecialSchedule;
......@@ -41,7 +42,8 @@ public class MainPresenterUnitTest {
specialSchedules.add(s1);
specialSchedules.add(s2);
mFacility = new Facility("The French Laundry", "Johnson Center",
Location location = new Location("Johnson Center");
mFacility = new Facility("The French Laundry", location,
mainSchedule, specialSchedules, false, true, "");
now = Calendar.getInstance();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment