How to use JUnit from Eclipse 1. Highlight the name of the file that contains the class you want to test. 2. Choose New..., then JUnit Test Case 3. In the window that comes up, click Next. 4. In the Test Methods window, put a check next to each method you want JUnit to create a test for. Click Finish. 5. If you're asked to put JUnit on the Build Path, click OK. 6. A new file should now appear with the method stubs for the tests you selected.