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:

MetaCatServletTest.java
47 47
 */
48 48
public class MetaCatServletTest extends TestCase
49 49
{
50
	/* Initialize Options*/
51
	  static
52
	  {
53
		  try
54
		  {
55
			  Options.initialize(new File("build/tests/metacat.properties"));
56
		  }
57
		  catch(Exception e)
58
		  {
59
			  System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage());
60
		  }
61
	  }
50 62
  private String metacatURL=MetaCatUtil.getOption("junittesturl");
51 63
  private String serialNumber;
52 64
  private static final Log log = LogFactory.getLog("edu.ucsb.nceas.metacattest.MetaCatServletTest");
53
  /* Initialize Options*/
54
  static
55
  {
56
	  try
57
	  {
58
		  Options.initialize(new File("build/tests/metacat.properties"));
59
	  }
60
	  catch(Exception e)
61
	  {
62
		  System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage());
63
	  }
64
  }
65 65
  
66
  
66 67
  /**
67 68
   * Constructor to build the test
68 69
   *

Also available in: Unified diff