Question: Bellow is the course test if needed: package university.debug; import static org.junit.Assert.*; import org.junit.*; import university.*; import java.util.ArrayList; public class CourseTest { @Test public void
Assignment 1 Classes in an Object-Oriented Model of a University 1. Objective In this assignment you will familiarize yourself with implementing a simplified object oriented model of a particular University's course offering/s. Learning objectives include developing UML class diagrams to describe OO classes familiarizing with Eclipse IDE translate UML class diagrams to Java code JUnit testing concepts and procedures Once the model is implemented in Java, JUnit testing needs to be done to verify your model is behaving as it should. Make sure you go through the JUnit tests/code given at the end of this document BEFORE you design and implement your classes. 2. The Model The model must observe the following rules: Each Student will have a name, and is enrolled in a university department, and has a course list. Students can sign up for courses. -When a student signs up for a course, the course should appear in his list of courses, and reciprocally he/she should appear on the course roster - Students can sign up for multiple courses - no detection of course schedule conflicts is necessary Each Department has a department name, a list of courses it offers, and a list of students enrolled in (majoring in) that department Departments add new students: the Student is added to the department's list of Students, and also the student's department should be set to that specific department. Departments add Courses: the Course will be added to the Department's list of Courses, and also the Course's department should be set to that specific department
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
