[jboss-dev-forums] [Design of JBoss internal QA (Test Suite)] - Re: Updating the server task to detect OutOfMemoryErrors
mvecera@redhat.com
do-not-reply at jboss.com
Tue Apr 10 08:09:57 EDT 2007
The problem is with method visibility:
JUnitMemCheckTask.java:1222: setOutfile(java.io.File) is not public in org.apache.tools.ant.taskdefs.optional.junit.FormatterElement; cannot be accessed from outside package [fe.setOutfile(outFile);]
JUnitMemCheckTask.java:1318: addFormattersTo(java.util.Vector) is not public in org.apache.tools.ant.taskdefs.optional.junit.JUnitTest; cannot be accessed from outside package [test.addFormattersTo(feVector);]
Ant JUnit task classes are not ready for extending at all. Every time I tried to solve the visibility problems I ended up with something similar to the original package clone :-(
But I found a brand new solution that works with no cloning! We can extend JUnitResultFormatter which has endTask() method with no problem. I'll attach the solution to JBAS-4211 as soon as possible.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035940#4035940
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035940
More information about the jboss-dev-forums
mailing list