Project

General

Profile

« Previous | Next » 

Revision 7779

Added by Jing Tao over 11 years ago

Use the ";" as the seperator for properties.

View differences:

metacat-common/src/test/java/edu/ucsb/nceas/metacat/common/MetacatCommonTestBase.java
18 18
    
19 19
    @Before
20 20
    public void setup() throws FileNotFoundException, IOException, ConfigurationException {
21
        Properties metacatTestProperties = new Properties();
22
        metacatTestProperties.load(new FileInputStream("../test/test.properties"));
23
        String metacatContextDir = metacatTestProperties.getProperty("metacat.contextDir");
24
        Settings.augmentConfiguration(metacatContextDir+"/WEB-INF"+"/metacat.properties");
21
        //Properties metacatTestProperties = new Properties();
22
        //metacatTestProperties.load(new FileInputStream("../test/test.properties"));
23
        //String metacatContextDir = metacatTestProperties.getProperty("metacat.contextDir");
24
        Settings.getConfiguration();
25
        Settings.augmentConfiguration("../lib/metacat.properties");
25 26
    }
26 27
}

Also available in: Unified diff