tester.jar can be found under /home/cs102/jarfiles
Your BlueJ config file has already been set up to find it.
Create an Examples class for your project to test your program. For example:
import tester.*; public class Examples { // fields are examples of Student objects private Student s1 = new Student("Marc", "999-00-0001"); // constructor has nothing to do public Examples() { // fields initialized where they are defined } // class method that runs all the tests public static void run() { Tester.runFullReport(new Examples()); } // test methods use the tester library public void test1(Tester t) { t.checkExpect(s1.getName(), "Marc"); } }
To run your tests, either:
run() method, or
Examples.runFullReport(new Examples());
Output will appear in the BlueJ terminal window:
Example will appear as example data