previous | start | next

Testing the Stack class with JUnit

JUnit provides a set of Java classes that facilitate testing class you build.

The basic method provided is a collection of overloaded versions of:

 assertEquals(expected_expression_value, expression)
   

Instead of you writing code to check the return value of this method, JUnit checks and notes whether it fails or not.



previous | start | next