/** * Runs the test using the specified harness. * * @param harness the test harness (<code>null</code> not permitted). */ public void test(TestHarness harness) { EOFException object1 = new EOFException(); harness.check(object1 != null); harness.check(object1.toString(), "java.io.EOFException"); EOFException object2 = new EOFException("nothing happens"); harness.check(object2 != null); harness.check(object2.toString(), "java.io.EOFException: nothing happens"); EOFException object3 = new EOFException(null); harness.check(object3 != null); harness.check(object3.toString(), "java.io.EOFException"); }