-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestCourse.java
More file actions
36 lines (30 loc) · 920 Bytes
/
Copy pathtestCourse.java
File metadata and controls
36 lines (30 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import java.util.*;
public class testCourse
{
public static void main(String [] args){
//TEST 1
Course c1 = new Course();
System.out.println(c1);
System.out.println("");
//TEST 2
System.out.println(c1.printStudents());
//TEST 3
Address a1 = new Address("Happy Lane", "12345");
Student s2 = new Student("Bob", 555, a1);
System.out.println(c1.setStudent(s2));
System.out.println(c1.setStudent(s2, 1));
System.out.println(c1.printStudents());
//TEST 4
c1.setName("Marketing");
Faculty f1 = new Faculty("Ms. Smith", a1);
c1.setFaculty(f1);
System.out.println(c1);
System.out.println("");
//TEST 5
Course c2 = new Course("COURSE2", f1, 21);
System.out.println(c2.getStudent(25));
System.out.println("");
//TEST 6
System.out.println(c2);
}
}