Hi, 

I am trying to get started with junit4 support.

As a very first step I replaced the code in JUnitTestSuite.execute with

        test[0]=getTestClass().getName();
        Result r= new JUnitCore().runMain(test);

which basically runs the tests, altough not very much integration in maven yet.

The first problem I discoverd is in JUnitDirectoryTestSuite.createTestSet:

        if ( junitClass != null && junitClass.isAssignableFrom( testClass ) )
        {
            testSet = new JUnitTestSet( testClass );
        }
        else
        {
            testSet = new PojoTestSet( testClass );
        }


If the test class is a pojo it assumes a pojo test. In junit4 it is ok that 
test classes are pojos. So what should be done here?

best regards
Bernd


-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to