A
Aryeh.Friedman
Lets say I have some method that basically says (this is a syntex
question so thats why I said basically):
public void assertError(Exception exception)
{
if (exception)
System.out.println("PASS");
else
System.out.println("FAIL");
}
and then need to do something like:
assertError(new file("bad file name")); // or anything else that will
throw an exception
how can I force the line that throws the exception to actual apss it to
assertError so I can see if their was an exception thrown or not.
--Aryeh
question so thats why I said basically):
public void assertError(Exception exception)
{
if (exception)
System.out.println("PASS");
else
System.out.println("FAIL");
}
and then need to do something like:
assertError(new file("bad file name")); // or anything else that will
throw an exception
how can I force the line that throws the exception to actual apss it to
assertError so I can see if their was an exception thrown or not.
--Aryeh