Revision 4127
Added by daigle about 16 years ago
VersionTest.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package edu.ucsb.nceas.metacattest; |
25 | 25 |
|
26 |
import java.io.File; |
|
27 |
import java.io.FileNotFoundException; |
|
28 |
import java.io.IOException; |
|
29 |
|
|
30 | 26 |
import edu.ucsb.nceas.metacat.MetaCatVersion; |
31 | 27 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
32 |
import edu.ucsb.nceas.utilities.Options;
|
|
28 |
import edu.ucsb.nceas.metacat.service.ServiceException;
|
|
33 | 29 |
import edu.ucsb.nceas.utilities.PropertyNotFoundException; |
34 | 30 |
|
35 | 31 |
import junit.framework.TestCase; |
... | ... | |
49 | 45 |
{ |
50 | 46 |
super.setUp(); |
51 | 47 |
try { |
52 |
File propertyFile = new File("./lib/metacat.properties"); |
|
53 |
Options options = Options.initialize(propertyFile); |
|
54 |
} catch (FileNotFoundException e) { |
|
55 |
fail(e.getMessage()); |
|
56 |
} catch (IOException e) { |
|
57 |
fail(e.getMessage()); |
|
58 |
} |
|
48 |
PropertyService.getInstance("build/tests"); |
|
49 |
} catch (ServiceException se) { |
|
50 |
fail(se.getMessage()); |
|
51 |
} |
|
59 | 52 |
} |
60 | 53 |
|
61 | 54 |
/** |
Also available in: Unified diff
Replace Options class with PropertyService and create PropertyService using log directory name instead of servlet context