Project

General

Profile

« Previous | Next » 

Revision 4127

Added by daigle almost 16 years ago

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

View differences:

AuthLdapTest.java
27 27
import java.io.File;
28 28

  
29 29
import edu.ucsb.nceas.metacat.AuthLdap;
30
import edu.ucsb.nceas.metacat.service.PropertyService;
30 31
import edu.ucsb.nceas.metacat.util.MetaCatUtil;
31
import edu.ucsb.nceas.utilities.Options;
32 32
import junit.framework.Test;
33 33
import junit.framework.TestCase;
34 34
import junit.framework.TestSuite;
......
45 45
	
46 46
	
47 47
	private MetaCatUtil util;
48
    /* Initialize Options*/
48
    /* Initialize properties*/
49 49
    static
50 50
    {
51 51
  	  try
52 52
  	  {
53
  		  Options.initialize(new File("build/tests/metacat.properties"));
53
  		PropertyService.getInstance("build/tests");
54 54
  	  }
55 55
  	  catch(Exception e)
56 56
  	  {

Also available in: Unified diff