On Oct 26, 2006, at 12:55 PM, Jacek Laskowski wrote:

On 10/26/06, David Blevins <[EMAIL PROTECTED]> wrote:

You can just run the RemoteiTest class instead of that other one.

http://svn.apache.org/repos/asf/incubator/openejb/trunk/openejb3/
server/openejb-ejbd/src/test/java/org/apache/openejb/RemoteiTest.java

There's a comment at the top of that class that describes the VM
param you must pass to run the test from your IDE.  Obviously, you'll
need to update the path to be something other than "/Users/
dblevins/...."

Similarly of you want to run the itests on just the openejb-core, you
can run this class:

http://svn.apache.org/repos/asf/incubator/openejb/trunk/openejb3/
container/openejb-core/src/test/java/org/apache/openejb/iTest.java

Another only-a-few-knowing OpenEJB gem. The wonder of open source -
want more? Take a look at the sources! Thanks Dave for sharing that
with us so we, mortals, know more now ;-)

It would have been more obvious if we didn't have to have those "Surefire Hack" classes, then you'd only be looking at the actual test class which has the actual comment "do this for your IDE". But at some point Surefire decided it wasn't going to run anything that wasn't an immediate subclass of TestCase even if your parent's parent was TestCase or your class was assignable to TestCase.

I've commented these "hack" classes so hopefully no one will be confused again.

-David

Reply via email to