Skip to content

beaw21/SE727-homework2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

se727-homework2

This is the source code for the homework 2 find the test case You can get the source code from Create the automated test code from the given source code. Your test code will test all methods. You need to use the behaviour checking as well.

CourseServiceImpl
-getCourseReport(Course course, Integer academicYear);
-getCourseGpa(List<CourseEnrolment> courseEnrolments)

StudentServiceImpl
- getStudentGpa(Student student)
- getStudentGpa(Student student, Integer academicYear)
- getStudentReport(Student student);

Hint you can mock your own service (as some of the methods here refer to it own service) using the Mockito.spy method. The example is shown in the test folder The StudentServiceImplTest.

The grading After you complete the test, the mutate code will be given to you with 5 errors. If your test case can find 5 error. You will get 10 point. If you have any questions, feel free to ask me in any channel.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 99.6%
  • HTML 0.4%