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:

ReplicationServerListTest.java
29 29
import edu.ucsb.nceas.metacat.*;
30 30
import edu.ucsb.nceas.metacat.service.PropertyService;
31 31
import edu.ucsb.nceas.metacat.util.MetaCatUtil;
32
import edu.ucsb.nceas.utilities.Options;
33 32
//import edu.ucsb.nceas.morpho.framework.*;
34 33
import junit.framework.Test;
35 34
import junit.framework.TestCase;
......
49 48
public class ReplicationServerListTest extends TestCase
50 49
{
51 50
    private static String metacatReplicationURL;
52
	 /* Initialize Options*/
51
	 /* Initialize properties*/
53 52
	  static
54 53
	  {
55 54
		  try
56 55
		  {
57 56
			 metacatReplicationURL=
58 57
                     PropertyService.getProperty("junitreplicationurl");
59
			  Options.initialize(new File("build/tests/metacat.properties"));
58
			  PropertyService.getInstance("build/tests");
60 59
			  MetaCatUtil.pathsForIndexing 
61 60
			         = MetaCatUtil.getOptionList(PropertyService.getProperty("indexPaths"));
62 61
		  }

Also available in: Unified diff