コード例 #1
0
  @Test
  public void testCreateScheduleScheduleOptions3() {

    Collection<String> courses = new ArrayList<String>();

    courses.add("COP2210");

    // System.out.println(fc.createSchedule("Spring 2007", courses, "All", "1111111"));

    assertEquals(
        "Collection:",
        true,
        fc.createSchedule("Spring 2007", courses, "All", "1111111").toString());
  }
コード例 #2
0
 @Test
 public void testLogin6() {
   // Neither User name or password exists in the database
   assertEquals("Logged In?", false, fc.login("2yourmom23", "1256738fjden"));
 }
コード例 #3
0
 @Test
 public void testLogin5() {
   // User name exists, but password does not
   assertEquals("Logged In?", false, fc.login("2354235", "!@#$%"));
 }
コード例 #4
0
 @Test
 public void testLogin4() {
   // User name doesn't exist, but password does
   assertEquals("Logged In?", false, fc.login("445984253", "abc123"));
 }
コード例 #5
0
  @Test
  public void testLogin3() {

    assertEquals("Logged In?", true, fc.login("2234523", "abc345"));
  }
コード例 #6
0
  @Test
  public void testLogin2() {

    assertEquals("Logged In?", true, fc.login("2354235", "abc234"));
  }
コード例 #7
0
  @Test
  public void testLogin1() {

    assertEquals("Logged In?", true, fc.login("1412412", "abc123"));
  }