Commit 6789422a authored by 9731087's avatar 9731087

Third commit

parent 0c8b3489
File added
...@@ -36,6 +36,13 @@ class DepartmentTest { ...@@ -36,6 +36,13 @@ class DepartmentTest {
assertEquals(department.getCourses(), course); assertEquals(department.getCourses(), course);
assertEquals(department.getProfessors(),professor); assertEquals(department.getProfessors(),professor);
assertEquals(department.getStudents(), student); assertEquals(department.getStudents(), student);
assertEquals("ce",department.getName());
department.removeCourse(course);
department.removeProfessor(professor);
department.removeStudent(student);
assertEquals(department.getCourses(), course);
assertEquals(department.getProfessors(),professor);
assertEquals(department.getStudents(), student);
} }
......
...@@ -35,6 +35,7 @@ class ProfessorTest { ...@@ -35,6 +35,7 @@ class ProfessorTest {
assertEquals("mmd", professor.getName()); assertEquals("mmd", professor.getName());
assertEquals(department, professor.getDepartment()); assertEquals(department, professor.getDepartment());
assertEquals(course, department.getCourses());
} }
......
...@@ -23,6 +23,7 @@ class StudentTest { ...@@ -23,6 +23,7 @@ class StudentTest {
department = new Department("CE"); department = new Department("CE");
student = new Student("Amir", "87", "am", department); student = new Student("Amir", "87", "am", department);
course = new Course("1", "az", department, professor, 100); course = new Course("1", "az", department, professor, 100);
student.addCourse(course);
} }
...@@ -33,6 +34,7 @@ class StudentTest { ...@@ -33,6 +34,7 @@ class StudentTest {
assertEquals("ce", student.getMajor()); assertEquals("ce", student.getMajor());
assertEquals(department, student.getDepartment()); assertEquals(department, student.getDepartment());
assertEquals(course, student.getCourses()); assertEquals(course, student.getCourses());
} }
......
...@@ -33,8 +33,10 @@ class UniversityTest { ...@@ -33,8 +33,10 @@ class UniversityTest {
public void testProfessor() { public void testProfessor() {
assertEquals(department, university.getDepartments());
assertEquals(department, university.getDepartments());
university.removeDepartment(department);
assertEquals(department, university.getDepartments());
} }
} }
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/com.iml" filepath="$PROJECT_DIR$/.idea/com.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="e4a40eb0-d759-4832-a254-5d042643d03c" name="Default Changelist" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="width" value="1680" />
<option name="height" value="1050" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="com" type="b2602c69:ProjectViewProjectNode" />
<item name="com" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="settings.editor.selected.configurable" value="editor.preferences.gutterIcons" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="e4a40eb0-d759-4832-a254-5d042643d03c" name="Default Changelist" comment="" />
<created>1555243399424</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1555243399424</updated>
<workItem from="1555243402447" duration="14000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="14000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="0" width="1680" height="957" extended-state="6" />
<layout>
<window_info id="Image Layers" />
<window_info id="Designer" />
<window_info id="UI Designer" />
<window_info id="Capture Tool" />
<window_info id="Favorites" side_tool="true" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24969475" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" />
<window_info anchor="bottom" id="Version Control" />
<window_info anchor="bottom" id="Terminal" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="right" id="Palette" />
<window_info anchor="right" id="Theme Preview" />
<window_info anchor="right" id="Maven" />
<window_info anchor="right" id="Capture Analysis" />
<window_info anchor="right" id="Palette&#9;" />
<window_info anchor="right" id="Database" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
</project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment