Update CourseServiceUnitTest.java

junit method 'assertNotNull' added twice.
This commit is contained in:
worldpeacez0991 2019-03-08 15:13:27 +08:00 committed by GitHub
parent c5fbfa2329
commit 90bd26c8b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ public class CourseServiceUnitTest {
CourseEntity courseEntity = new CourseEntity();
CourseService.copyProperties(course, courseEntity);
assertNotNull(course.getName());
assertNotNull(courseEntity.getName());
Assert.assertEquals(course.getName(), courseEntity.getName());
Assert.assertEquals(course.getCodes(), courseEntity.getCodes());
Assert.assertNull(courseEntity.getStudent("ST-1"));