I have written this code in junit4.
@Test (expected = AssertionError.class)
public void testMinFail() {
double min = emApp.minSalary(emApp.getEmployees());
assertEquals(40000.0, min, 0);
}
enter code here
I was just wondering how to catch this in junit3.
If you really want to use older JUnit version, you can do something like that: