Project

General

Profile

« Previous | Next » 

Revision 3875

Added by Jing Tao almost 16 years ago

Check into cvs head. Add initialize option statment at the beginging of the class.

View differences:

OnlineDataAccessTest.java
41 41
import edu.ucsb.nceas.metacat.client.MetacatFactory;
42 42
import edu.ucsb.nceas.metacat.client.MetacatInaccessibleException;
43 43
import edu.ucsb.nceas.utilities.IOUtil;
44
import edu.ucsb.nceas.utilities.Options;
44 45
import junit.framework.Test;
45 46
import junit.framework.TestCase;
46 47
import junit.framework.TestSuite;
......
51 52
 */
52 53
public class OnlineDataAccessTest
53 54
    extends TestCase {
54

  
55
	 /* Initialize Options*/
56
    static
57
    {
58
  	  try
59
  	  {
60
  		  Options.initialize(new File("build/tests/metacat.properties"));
61
  		  MetaCatUtil.pathsForIndexing 
62
  		         = MetaCatUtil.getOptionList(MetaCatUtil.getOption("indexPaths"));
63
  	  }
64
  	  catch(Exception e)
65
  	  {
66
  		  System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage());
67
  	  }
68
    }
55 69
    private String metacatUrl = MetaCatUtil.getOption("metacatUrl");
56 70
    private String username = MetaCatUtil.getOption("mcuser");
57 71
    private String password = MetaCatUtil.getOption("mcpassword");

Also available in: Unified diff