Question: should it? Technically, an object is allowed to refer to static methods as if they were part of themselves. Using "this" to refer to a static method is just as legal in Java as not using "this," right? I guess trying ClassName.assertXXX or TestCase.assertXXX would be just as useful, but who wants to remember that? :-)
I know that in JBuilder (and most other commercial IDEs I've experienced) static methods show up in references to objects of the specified type during the little popup convenience.. -S. "North, Dan (Thought Works )" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi Thomas. > > assertXxx are all static methods (on Assert class) so it won't show up on > the instance method completion after "this." > > Cheers, > Dan > > > -----Original Message----- > > From: Thomas Sundberg [mailto:[EMAIL PROTECTED]] > > Sent: 02 August 2002 14:22 > > To: [EMAIL PROTECTED] > > Subject: [Eap-features] Integrating JUnit > > > > > > > > > > Hi! > > > > Beeing a newbee using IDEA I'm having trouble writing my JUnit tests. > > > > When I subclass a test case and write a test I cannot use the code > > completion, i.e. I cannot write this. and find all available > > options. I > > find some but the most important ones, assert* isn't > > available. I can write > > them, compile using IDEA and run the test without problem. > > > > I have added junit/junit.jar and junit/src.jar to my classpath. > > > > I can browse the class hiearcy for TestCase, which I extend, > > all the way to > > Object including Assert which contains the methods I'm > > missing when I try > > to use the code completion. > > > > Does any one recognise this problem? Do you have any > > suggestions regarding > > where I should try to locate the problem? > > > > If this is the wrong list to ask stuff like this, please > > advise me to where > > I should send my question. > > > > /Thomas > > > > _______________________________________________ > > Eap-features mailing list > > [EMAIL PROTECTED] > > http://lists.jetbrains.com/mailman/listinfo/eap-features > > _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-features
