Project

General

Profile

« Previous | Next » 

Revision 2158

Revise test suite after moving Harvester properties to metacat.properties.

View differences:

HarvestLogTest.java
34 34
import java.sql.SQLException;
35 35
import java.sql.SQLWarning;
36 36
import java.util.Date;
37
import java.util.Properties;
38 37
import edu.ucsb.nceas.metacat.harvesterClient.Harvester;
39 38
import edu.ucsb.nceas.metacat.harvesterClient.HarvestDetailLog;
40 39
import edu.ucsb.nceas.metacat.harvesterClient.HarvestDocument;
......
66 65
  
67 66
  
68 67
  protected void setUp() {
69
    File configfile = new File("./lib/harvester", "harvester.properties");
70 68
    String contactEmail = "jdoe@institution.edu";
71 69
    String dateLastHarvest = "2004-04-01 00:00:00.0";
72 70
    String dateNextHarvest = "2004-05-01 00:00:00.0";
......
89 87
    String scope = "docname";
90 88
    int siteScheduleID = 1;
91 89
    int status = 0;
90
    boolean test = true;
92 91
    String unit = "months";
93 92
    int updateFrequency = 1;
94 93

  
95 94
    harvester = new Harvester();
96
    Harvester.loadProperties(configfile);
95
    Harvester.loadOptions(test);
97 96
    conn = harvester.getConnection();  // initializes the database connection
98 97
    harvester.initLogIDs();
99 98
    harvestLogID = harvester.getHarvestLogID();

Also available in: Unified diff