Thanks.

It works fine with
         public static Test suite()

Alain




----- Original Message -----
From: Anton Katilin
>> I think I've found what the problem is. IDEA accepts classes with "public
static Test suite()" methods, but not "public static TestSuite suite()".
Please check if this works if you change return type from TestSuite to Test.


----- Original Message -----
From: Alain Ravet

Anton,

> Does it implement static suite() method?

It doesn't help.
I have the same "problem" with the following code :


public class AllTests    extends TestSuite

{

// --------------------------------------------------- suite ()
    public static TestSuite suite ()
// ------------------------------------------------------------
    {
        final TestSuite suite = new TestSuite();

        suite.addTestSuite ( Test1.class) ;
        suite.addTestSuite ( Test2.class) ;


        return suite ;
    }
}
I won't work without a main() method in the class.

Alain Ravet



----- Original Message -----
From: "Anton Katilin" <[EMAIL PROTECTED]>


> Hello Donald!
>
> Does it implement static suite() method?
>
> Best regards,
> Anton Katilin
>
> ----- Original Message -----
> From: "Donald F. McLean" <[EMAIL PROTECTED]>
>
> > I have a TestSuite object and when I have it up in the editor the "test"
> > command doesn't show up on the menu as it does for TestCase objects.
> >
> > Donald


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to