db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "IntroToJUnit" by JohnHEmbretsen
Date Fri, 01 Sep 2006 13:48:02 GMT
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:
  

Mime
View raw message