You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2006/09/01 15:48:02 UTC

[Db-derby Wiki] Update of "IntroToJUnit" by JohnHEmbretsen

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by JohnHEmbretsen:
http://wiki.apache.org/db-derby/IntroToJUnit

The comment on the change is:
Fixed some minor bugs (mostly cosmetic)

------------------------------------------------------------------------------
  
  C:\junit\junit3.8.2>set CLASSPATH=junit.jar;.
  
- C:\junit\junit3.8.2>java junit.textui.TestRunner junit.samples.AllTest
+ C:\junit\junit3.8.2>java junit.textui.TestRunner junit.samples.AllTests
- s
  .........................................
  .........................................
  .........................................
@@ -88, +87 @@

   * setUp() - initialize test variables, open network connections, etc.
   * tearDown() - closes resources
          
- Your class must extend junit.framework.!TestCase
+ Your class must extend junit.framework.!TestCase.
  	
  == Creating your First Test (Command Line and Eclipse) ==
  
@@ -96, +95 @@

   2. Override the method runTest(), calling the tests to run
   3. Create a method to test, using one of the assertXXX methods to compare test values
  
- The method to test must start with the prefix 'test', e.g. 'testAddMethod'
+ The method to test must start with the prefix 'test', e.g. 'testAddMethod'.
  
  Example of the simplest test case, containing only one test:
  {{{
@@ -169, +168 @@

  
   1. Create a subclass of !TestCase (extend !TestCase)
   2. Override the method runTest(), calling the tests to run
-  3. Create a method to test, using one of the assertXXX methods to 
+  3. Create a method to test, using one of the assertXXX methods to compare test values
  
  For a fixture use these steps: