Project

General

Profile

« Previous | Next » 

Revision 4384

Added by daigle almost 16 years ago

Convert remainder of tests that use PropertyService to extend the MCTestCase class

View differences:

QueryResultBuilderTest.java
28 28
import java.util.Enumeration;
29 29
import java.util.Hashtable;
30 30

  
31
import edu.ucsb.nceas.MCTestCase;
31 32
import edu.ucsb.nceas.metacat.DBConnection;
32 33
import edu.ucsb.nceas.metacat.DBConnectionPool;
33 34
import edu.ucsb.nceas.metacat.service.PropertyService;
34 35

  
35 36
import junit.framework.Test;
36
import junit.framework.TestCase;
37 37
import junit.framework.TestSuite;
38 38

  
39 39

  
......
43 43
 * Test class for getting idea how long it will take - to build 
44 44
 * records xml_queryresult table for a given return fields
45 45
 */
46
public class QueryResultBuilderTest extends TestCase
46
public class QueryResultBuilderTest extends MCTestCase
47 47
{
48 48
	/** DBConnection pool*/
49 49
	private DBConnectionPool connPool = null;
......
52 52
	/** Return field id value for above return field string in xml_returnfield*/
53 53
	private int returnFieldId =11;
54 54
	
55
	static
56
	  {
57
		  try
58
		  {
59
			  PropertyService.getInstance("build/tests");
60
		  }
61
		  catch(Exception e)
62
		  {
63
			  System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage());
64
		  }
65
	  }
66
	
67 55
	/**
68 56
     * Create a suite of tests to be run together
69 57
     */

Also available in: Unified diff