Project

General

Profile

Revision 2329

Added by Matt Jones about 16 years ago

Removed hardcoded path from EventLogTest.

View differences:

test/edu/ucsb/nceas/metacattest/EventLogTest.java
44 44
 */
45 45
public class EventLogTest extends TestCase
46 46
{
47
    private String propertyFileName = 
48
        "@install-dir@/WEB-INF/metacat.properties";
47 49

  
48 50
    protected void setUp() throws Exception
49 51
    {
50 52
        super.setUp();
51 53
        try {
52
            File propertyFile = new File("./lib/metacat.properties");
54
            File propertyFile = new File(propertyFileName);
53 55
            Options options = Options.initialize(propertyFile);
54 56
            MetaCatUtil util = new MetaCatUtil();
55 57
            DBConnectionPool pool = DBConnectionPool.getInstance();

Also available in: Unified diff