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

Tip for users of VJ++ (and JUnit)

Expand Messages
  • Nathan Arthur
    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
    Message 1 of 1 , Oct 9, 2000
    • 0 Attachment
      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
       
    Your message has been successfully submitted and would be delivered to recipients shortly.