Project

General

Profile

« Previous | Next » 

Revision 2255

Add additional comments to the test cases.

View differences:

HarvesterTest.java
37 37
import junit.framework.TestSuite;
38 38

  
39 39
/**
40
 * Test Harvester code using JUnit.
40
 * Tests Harvester code using JUnit.
41 41
 *
42 42
 * @author  costa
43 43
 */
......
46 46
  private Harvester harvester;
47 47
  
48 48

  
49
  /**
50
   * Constructor for this test.
51
   * 
52
   * @param name     name of the test case
53
   */
49 54
  public HarvesterTest(String name) {
50 55
    super(name);
51 56
  }
52 57
  
53
  
58

  
59
  /**
60
   * Sets up the test by instantiating a Harvester object.
61
   */
54 62
  protected void setUp() {
55 63
    harvester = new Harvester();
56 64
  }
57 65
  
58
  
66

  
67
  /**
68
   * No clean-up actions necessary for these tests.
69
   */
59 70
  protected void tearDown() {
60 71
  }
61 72
  
62
  
73

  
74
  /**
75
   * Tests the dequoteText() string function. It converts single quotes to
76
   * double quotes.
77
   */
63 78
  public void testDequoteText() {
64 79
    String singleQuoteString = "I can't see how it's done!\n";
65 80
    String compareString = "I can\"t see how it\"s done!";
......
72 87
  
73 88
  
74 89
  /**
75
   * Test that the Harvester object was created successfully.
90
   * Tests that the Harvester object was created successfully.
76 91
   */
77 92
  public void testHarvesterObject() {
78 93
    assertTrue(harvester != null);

Also available in: Unified diff