This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Re: TestCase.fail() bug
Chris Moller wrote:
I committed a change a while ago that adds
import junit.framework.Assert;
at the top and replaced the TestCase.fail(...)s with Assert.fail(...)s.
I'm way too Java-impaired to know if my patch achieves anything like
your suggestion but, if not, I'll try to hack your stuff in.
Should just be a matter of appending to frysk.junit.TestCase.java:
public static fail(String why) throws AssertionError.
{
super.fail(why)
}
or even:
{
throw new AssertionError(why);
}
I'm unsure of the fail method signature but I think that is correct.
Then we can go back to using TestCase.fail(why) and TestCase in general
for everything (test related).