On Thu, 25 Oct 2001 05:13:12 -0700 (PDT), Bjoern Kuebler wrote:

+1

>Hi, 
>
>I have created the following LiveTemplate for JUnit TestCases: 
>
>import junit.framework.TestSuite;
>import junit.framework.Test;
>import junit.framework.TestCase; 
>
>public class $CLASS_NAME$ extends TestCase
>{
>    public static void main(String args[]) {
>        junit.textui.TestRunner.run(suite());
>    }     
>    
>    public static Test suite() {
>        return new TestSuite($CLASS_NAME$.class);
>    }     
>
>    public $CLASS_NAME$(String s) {
>        super(s);
>    }
>   
>    public void test$OPERATION$() {
>        $END$
>    }
>} 
>
>I assigned to the variable $CLASS_NAME$ the function className(). Unfortunately,
>this is not working because the function className() examines the declaration
>* class _TheName_ ( ... which is not defined in this case, of course. 
>
>
>My suggestion for this is now, as you already integrated JUnit into IDEA, to extend 
>your
>'New' context menu (Class/Interface/Package) with 'TestCase' and let the user specify
>a template the same way as it is already possible for clases and interfaces.
>(In Tools/IDE Options/Class Templates). 
>
>-Bj�rn
>
>=====
>"A critic is a man who creates nothing and thereby feels qualified to judge the work 
>of creative men. There is a logic in this; he is unbiased - 
he hates all creative people equally."
>- Robert A. Heinlein
>
>__________________________________________________
>Do You Yahoo!?
>Make a great connection at Yahoo! Personals.
>http://personals.yahoo.com
>
>_______________________________________________
>Eap-features mailing list
>[EMAIL PROTECTED]
>http://www.intellij.com/mailman/listinfo/eap-features
>




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

Reply via email to