Revision 2255
Added by Duane Costa almost 20 years ago
HarvestDetailLogTest.java | ||
---|---|---|
38 | 38 |
import junit.framework.TestSuite; |
39 | 39 |
|
40 | 40 |
/** |
41 |
* Test HarvestDetailLog code using JUnit. |
|
41 |
* Tests HarvestDetailLog code using JUnit.
|
|
42 | 42 |
* |
43 | 43 |
* @author costa |
44 | 44 |
*/ |
... | ... | |
50 | 50 |
private HarvestSiteSchedule harvestSiteSchedule; |
51 | 51 |
|
52 | 52 |
|
53 |
/** |
|
54 |
* Constructor for this test. |
|
55 |
* |
|
56 |
* @param name name of the test case |
|
57 |
*/ |
|
53 | 58 |
public HarvestDetailLogTest(String name) { |
54 | 59 |
super(name); |
55 | 60 |
} |
56 | 61 |
|
57 |
|
|
62 |
|
|
63 |
/** |
|
64 |
* Sets up the test by instantiating HarvestSiteSchedule, HarvestDocument, |
|
65 |
* and HarvestDetailLog objects. |
|
66 |
*/ |
|
58 | 67 |
protected void setUp() { |
59 | 68 |
Connection conn; |
60 | 69 |
String contactEmail = "jdoe@institution.edu"; |
... | ... | |
111 | 120 |
errorMessage); |
112 | 121 |
} |
113 | 122 |
|
114 |
|
|
123 |
|
|
124 |
/** |
|
125 |
* Closes the database connection when the test completes. |
|
126 |
*/ |
|
115 | 127 |
protected void tearDown() { |
116 | 128 |
harvester.closeConnection(); |
117 | 129 |
} |
Also available in: Unified diff
Add additional comments to the test cases.