Revision 4385
Added by daigle almost 16 years ago
HarvestLogTest.java | ||
---|---|---|
28 | 28 |
package edu.ucsb.nceas.metacattest.harvesterClient; |
29 | 29 |
|
30 | 30 |
import edu.ucsb.nceas.metacat.harvesterClient.HarvestSiteSchedule; |
31 |
import java.io.File; |
|
32 | 31 |
import java.sql.Connection; |
33 |
import java.sql.DriverManager; |
|
34 |
import java.sql.SQLException; |
|
35 |
import java.sql.SQLWarning; |
|
36 | 32 |
import java.util.Date; |
33 |
|
|
34 |
import edu.ucsb.nceas.MCTestCase; |
|
37 | 35 |
import edu.ucsb.nceas.metacat.harvesterClient.Harvester; |
38 |
import edu.ucsb.nceas.metacat.harvesterClient.HarvestDetailLog; |
|
39 | 36 |
import edu.ucsb.nceas.metacat.harvesterClient.HarvestDocument; |
40 | 37 |
import edu.ucsb.nceas.metacat.harvesterClient.HarvestLog; |
41 | 38 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
42 | 39 |
import edu.ucsb.nceas.metacat.util.MetaCatUtil; |
40 |
|
|
43 | 41 |
import junit.framework.Test; |
44 |
import junit.framework.TestCase; |
|
45 | 42 |
import junit.framework.TestSuite; |
46 | 43 |
|
47 | 44 |
/** |
... | ... | |
49 | 46 |
* |
50 | 47 |
* @author costa |
51 | 48 |
*/ |
52 |
public class HarvestLogTest extends TestCase { |
|
49 |
public class HarvestLogTest extends MCTestCase {
|
|
53 | 50 |
|
54 | 51 |
private Connection conn; |
55 | 52 |
private Harvester harvester; |
56 | 53 |
private HarvestLog harvestLogShallow; |
57 | 54 |
private HarvestLog harvestLogDeep; |
58 |
private HarvestDocument harvestDocument; |
|
59 | 55 |
private HarvestSiteSchedule harvestSiteSchedule; |
60 | 56 |
/* Initialize Properties*/ |
61 | 57 |
static |
62 | 58 |
{ |
63 | 59 |
try |
64 | 60 |
{ |
65 |
PropertyService.getInstance("build/tests"); |
|
66 | 61 |
MetaCatUtil.pathsForIndexing |
67 | 62 |
= MetaCatUtil.getOptionList(PropertyService.getProperty("xml.indexPaths")); |
68 | 63 |
} |
Also available in: Unified diff
Convert remainder of tests that use PropertyService to extend the MCTestCase class