Loading ...
Sorry, an error occurred while loading the content.

RE: [XP] Tip for users of VJ++ (and JUnit)

Expand Messages
  • Tom Copeland
    Hey, that s great! Thanks much! Tom ... From: Nathan Arthur [mailto:truist@noteworthyms.com] Sent: Monday, October 09, 2000 2:13 PM To: XP Mailing List
    Message 1 of 1 , Oct 9, 2000
    • 0 Attachment
      Hey, that's great!  Thanks much!
       
      Tom
      -----Original Message-----
      From: Nathan Arthur [mailto:truist@...]
      Sent: Monday, October 09, 2000 2:13 PM
      To: XP Mailing List
      Subject: [XP] Tip for users of VJ++ (and JUnit)

      You may already know this, or it may have been said here before, but if you add a file to your
      C:\Program Files\Microsoft Visual Studio\VJ98\VJProjectItems\Class\
      directory (assuming a default install) named "test.java" (or something similar) Visual J++ will give you an additional item in your "add class" dialog named "Test".  Then, if you populate that file appropriately, you can make a default "start" test file so you do have to fill in all the basic stuff yourself.  For example:
       

      import junit.framework.*;
       
      public class %FILENAME% extends TestCase
      {
          public %FILENAME%(String name)
          {
              super(name);
          }
              
          public static Test suite()
          {
              return new new TestSuite(%FILENAME%.class);
          }
      }
       
       
      You could also put setUp() and tearDown() in it.
       
      Nathan Arthur
       

      To Post a message, send it to:   extremeprogramming@...

      To Unsubscribe, send a blank message to: extremeprogramming-unsubscribe@...

      Ad-free courtesy of objectmentor.com

    Your message has been successfully submitted and would be delivered to recipients shortly.