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:

EventLogTest.java
44 44
 */
45 45
public class EventLogTest extends TestCase
46 46
{
47
	 /* Initialize Options*/
48
    static
49
    {
50
  	  try
51
  	  {
52
  		  Options.initialize(new File("build/tests/metacat.properties"));
53
  		  MetaCatUtil.pathsForIndexing 
54
  		         = MetaCatUtil.getOptionList(MetaCatUtil.getOption("indexPaths"));
55
  	  }
56
  	  catch(Exception e)
57
  	  {
58
  		  System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage());
59
  	  }
60
    }
61
	
47 62
    private String propertyFileName = 
48 63
    	MetaCatUtil.getOption("installDir") + "/WEB-INF/metacat.properties";
49 64

  

Also available in: Unified diff