Project

General

Profile

« Previous | Next » 

Revision 4080

Added by daigle about 16 years ago

Merge 1.9 changes into Head

View differences:

ReplicationServerListTest.java
27 27
package edu.ucsb.nceas.metacattest;
28 28

  
29 29
import edu.ucsb.nceas.metacat.*;
30
import edu.ucsb.nceas.metacat.service.PropertyService;
31
import edu.ucsb.nceas.metacat.util.MetaCatUtil;
30 32
import edu.ucsb.nceas.utilities.Options;
31 33
//import edu.ucsb.nceas.morpho.framework.*;
32 34
import junit.framework.Test;
......
46 48
 */
47 49
public class ReplicationServerListTest extends TestCase
48 50
{
51
    private static String metacatReplicationURL;
49 52
	 /* Initialize Options*/
50 53
	  static
51 54
	  {
52 55
		  try
53 56
		  {
57
			 metacatReplicationURL=
58
                     PropertyService.getProperty("junitreplicationurl");
54 59
			  Options.initialize(new File("build/tests/metacat.properties"));
55 60
			  MetaCatUtil.pathsForIndexing 
56
			         = MetaCatUtil.getOptionList(MetaCatUtil.getOption("indexPaths"));
61
			         = MetaCatUtil.getOptionList(PropertyService.getProperty("indexPaths"));
57 62
		  }
58 63
		  catch(Exception e)
59 64
		  {
60 65
			  System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage());
61 66
		  }
62 67
	  }
63
     private static String metacatReplicationURL=
64
                                   MetaCatUtil.getOption("junitreplicationurl");
68

  
65 69
     private ReplicationServerList serverList = null;
66 70
     private static final Log log = LogFactory.getLog("edu.ucsb.nceas.metacattest.ReplicationServerListTest");
67 71
 

Also available in: Unified diff