Project

General

Profile

« Previous | Next » 

Revision 4127

Added by daigle about 16 years ago

Replace Options class with PropertyService and create PropertyService using log directory name instead of servlet context

View differences:

QueryGroupTest.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.FileReader;
29
import java.io.IOException;
30
import java.util.Hashtable;
31

  
32 26
import junit.framework.Test;
33 27
import junit.framework.TestCase;
34 28
import junit.framework.TestSuite;
......
37 31
import edu.ucsb.nceas.metacat.QueryTerm;
38 32
import edu.ucsb.nceas.metacat.service.PropertyService;
39 33
import edu.ucsb.nceas.metacat.util.MetaCatUtil;
40
import edu.ucsb.nceas.utilities.Options;
41 34

  
42 35
/**
43 36
 * @author jones
......
47 40
public class QueryGroupTest extends TestCase
48 41
{
49 42
	private QueryGroup group = null;
50
	 /* Initialize Options*/
43
	 /* Initialize properties*/
51 44
    static
52 45
    {
53 46
  	  try
54 47
  	  {
55
  		  Options.initialize(new File("build/tests/metacat.properties"));
48
		  PropertyService.getInstance("build/tests");
56 49
  		  MetaCatUtil.pathsForIndexing 
57 50
  		         = MetaCatUtil.getOptionList(PropertyService.getProperty("indexPaths"));
58 51
  	  }

Also available in: Unified diff