April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
What is a JUnit Test?
nA test “script” is just a collection of Java methods.
nGeneral idea is to create a few Java objects, do something interesting with them, and then determine if the objects have the correct properties.
nWhat is added?  Assertions.
nA package of methods that checks for various properties:
n“equality” of objects
nidentical object references
nnull / non-null object references
nThe assertions are used to determine the test case verdict.