Changes

Jump to: navigation, search

Teams Winter 2011/team4/lab1

412 bytes added, 00:53, 3 February 2011
Writing and running JUnit tests
===Writing and running JUnit tests===
*Select a package in the package explorer, right click: New->JUnit Test Case
 
**Give it a meaningful name, Click Finish
 
*Ensure your class "extends TestCase"
*Create functions within your class, JUnit will automatically call them if they adhere to the naming conventions: function name = "test" + x
**public void testEquivs()
*Select your Java project in the package explorer, right click: Debug As->JUnit Test

Navigation menu