Search in sources :

Example 11 with Course

use of ca.dal.cs.softeng.database.Course in project CSCI3130 by T-Caines.

the class CourseManagerTest method conflictingTestFalse.

@Test
public void conflictingTestFalse() {
    dbAuth = FirebaseAuth.getInstance();
    dbAuth.signInWithEmailAndPassword("test@test.ca", "password");
    entry = courses.get(0);
    entry.timeStart = 0100;
    entry.timeEnd = 0200;
    ApplicationData.term = Constants.Term.FALL;
    cm.addCourse(entry);
    Course entry2 = entry = courses.get(3);
    entry2.timeStart = 2300;
    entry2.timeEnd = 2330;
    assertEquals(false, cm.isConflicting(entry2));
}
Also used : Course(ca.dal.cs.softeng.database.Course) Test(org.junit.Test)

Aggregations

Course (ca.dal.cs.softeng.database.Course)11 Test (org.junit.Test)5 View (android.view.View)3 TextView (android.widget.TextView)3 RequiresApi (android.support.annotation.RequiresApi)2 AdapterView (android.widget.AdapterView)2 Button (android.widget.Button)2 ListView (android.widget.ListView)2 RadioButton (android.widget.RadioButton)2 ArrayList (java.util.ArrayList)2 LayoutInflater (android.view.LayoutInflater)1 Before (org.junit.Before)1