INFO 6067
Testing for Development Lab TDD Part 2
Name:
Student ID:
Description – Test Driven Development Part 2
Marks – 20
Instructions
Groups of two
Read the attached requirements.
Requirement
This application will take a mortgage application containing information including
· the applicant’s salary
· debt load as a percentage of salary
· credit rating – 1 to 5 ( 1 is good 5 is bad)
· amount of mortgage
·
term in years
· the processor will determine if the applicant qualifies for a mortgage
· if the calculated mortgage payment is less than 60% of the applicants monthly paycheque – approved
· except if the credit rating is 3, 4 or 5 the mortgage payment can
· only be 45% of the monthly paycheque
Write at 2 tests for the above requirements.
Following the process from this week’s lecture write the code and design to create passing unit tests.
Write your tests here and submit your .java files.
Page 1 of 2
Sheet2
Requirement | This application will take a mortgage application containing information including | |||||||||||||
the applicant’s salary | ||||||||||||||
debt load as a percentage of salary | ||||||||||||||
credit rating – 1 to 5 ( 1 is good 5 is bad) | ||||||||||||||
amount of mortgage | ||||||||||||||
term in years | ||||||||||||||
the processor will determine if the applicant qualifies for a mortgage | ||||||||||||||
if the calculated mortgage payment is less than 60% of the applicants monthly paycheque – approved | ||||||||||||||
except if the credit rating is 3, 4 or 5 the mortgage payment can only be 45% of the monthly paycheque |