Skip to content

Latest commit

 

History

History
 
 

Lab-2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Advanced Unit Testing

  • Download SoftwareTesting2021.java from Github.
  • Write tests for SoftwareTesting2021 class which satisfy the following case:
    • If a fever student enter the class on Wednesday , verify that hospital doesn’t do any treatment.
    • If a fever student enter the class on Thursday, assert the output correct.
    • Suppose three students go to the hospital. Verify patientLog in hospital will record patient’s studentid with spy method. Don’t stub getLog function.
    • Use stub method to test getScore function to avoid connection to outer database.
    • Implement paypalService interface as a fake object to test donate function.
  • Name your test function test_a to test_e which belong to each case.
  • Upload SoftwareTesting2021Test.java to E3