Unit Tests
The unit test I want you document should be in a table (Excel or Word) with a few heading rows as shown below:
Class or Module:
Triangle.java
Date
: 11/1/2007
Tester
: Dan Fleck
Operating Environment
: Mac OS 10.4
Test ID
Risk
Test Case
Expected Result
1
The system may accept a triangle with side 1 + side 2 = side 3 (invalid triangle)
Call method describeTriangle with Input: 1, 1, 2
Error message returned
2
3
Explanation of columns:
Test ID:
The test number
Risk
: What error are you trying to detect. Be specific.
Test case
: What are the inputs you will use to test this class. Be specific about the inputs and which method would be called.
Expected result
: What do you expect to be the output or what should the program do.