Ejemplo n.º 1
0
 @Test
 public void testGetAllWithStudentShouldReturnList() {
   System.out.println("testGetAllWithStudentShouldReturnList");
   Course instance = new Course();
   Student students = new Student("sahil", "c0657966", "Male", 80.3);
   Student stu = new Student("Toshif", "c0657050", "Male", 60.4);
   instance.add(students);
   instance.add(stu);
   instance.remove(stu);
   String expResult = "[" + instance.get(0).toString() + "]";
   String result = instance.getAll().toString();
   assertEquals(expResult, result);
 }
Ejemplo n.º 2
0
 /** Test of add method, of class Course. */
 @Test
 public void testAdd() {
   System.out.println("add");
   Student student = null;
   Course instance = new Course();
   instance.add(student);
 }