PayrollTestPage.TestOne

Simple Acceptance Test for Payroll




First we add a few employees.

payrollTest.Employees
idnameaddresssalaryvalid()
1Jeff Languid10 Adamant St; Laurel, MD 207071005.00true
2Kelp Holland12B Baker St; Cottonmouth, IL 600662000.00true

Next we pay them.

payrollTest.PayDay
payDatecheckNumbervalid()
1/31/20011000true

We make sure their paychecks are correct. The blank cells will be filled in by the PaycheckInspector? fixture. The cells with data in them already will be checked.

payrollTest.PaycheckInspector
idamountnumbernamedate
11005 1000 Jeff Languid 1/31/2001
22000 1000 Kelp Holland 1/31/2001

Finally we make sure that the output contained two, and only two paychecks, and that they had the right check numbers.

payrollTest.PaycheckInspector
number
1000
1001 missing
1000 surplus

fitnesse.FitFilter


payrollTest.CleanUp

fit.Summary
counts 8 right, 2 wrong, 0 ignored, 0 exceptions
input file System.in
input update Thu Feb 13 19:04:21 CST 2003
output file System.out
run date Thu Feb 13 19:04:21 CST 2003
run elapsed time 0:00.38


[.FrontPage][.RecentChanges][ClassPath][.PayrollTestPage]