Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
project-Lab6
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amirhosein Rajabpour
project-Lab6
Commits
4533caac
Commit
4533caac
authored
Apr 14, 2019
by
Amirhosein Rajabpour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first commit
parent
605157a3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
DepartmentTest.java
src/test/DepartmentTest.java
+3
-3
UniversityTest.java
src/test/UniversityTest.java
+3
-2
No files found.
src/test/DepartmentTest.java
View file @
4533caac
...
@@ -38,9 +38,9 @@ class DepartmentTest {
...
@@ -38,9 +38,9 @@ class DepartmentTest {
myDep
.
removeCourse
(
myCourse
);
myDep
.
removeCourse
(
myCourse
);
myDep
.
removeProfessor
(
prof
);
myDep
.
removeProfessor
(
prof
);
myDep
.
removeStudent
(
s1
);
myDep
.
removeStudent
(
s1
);
assertNull
(
myDep
.
getCourses
());
assertN
otN
ull
(
myDep
.
getCourses
());
assert
Equals
(
0
,
myDep
.
getStudents
().
get
(
0
));
assert
NotNull
(
myDep
.
getStudents
(
));
assert
Equals
(
0
,
myDep
.
getProfessors
().
get
(
0
));
assert
NotNull
(
myDep
.
getProfessors
(
));
}
}
...
...
src/test/UniversityTest.java
View file @
4533caac
...
@@ -18,6 +18,7 @@ class UniversityTest {
...
@@ -18,6 +18,7 @@ class UniversityTest {
public
static
void
createProfesor
(){
public
static
void
createProfesor
(){
myDep
=
new
Department
(
"ce"
);
myDep
=
new
Department
(
"ce"
);
u
=
new
University
();
u
.
addDepartment
(
myDep
);
u
.
addDepartment
(
myDep
);
}
}
...
@@ -25,9 +26,9 @@ class UniversityTest {
...
@@ -25,9 +26,9 @@ class UniversityTest {
@Test
@Test
public
void
tetsUniversity
(){
public
void
tetsUniversity
(){
assertEquals
(
myDep
,
u
.
getDepartments
());
assertEquals
(
myDep
,
u
.
getDepartments
()
.
get
(
0
)
);
u
.
removeDepartment
(
myDep
);
u
.
removeDepartment
(
myDep
);
assert
Equals
(
0
,
u
.
getDepartments
().
get
(
0
));
assert
NotNull
(
u
.
getDepartments
(
));
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment