Unit Test Case is a part of code which ensures that the another part of code (method) works as expected.
To achieve those desired results quickly, test framework is required. JUnit is perfect unit test framework for java programming language.
The known input should test a precondition and the expected output should test a postcondition.
There must be at least two test cases for each requirement: one positive test and one negative test.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.