Revision 4149
Added by daigle over 16 years ago
test/edu/ucsb/nceas/metacattest/EventLogTest.java | ||
---|---|---|
27 | 27 |
import java.text.ParseException; |
28 | 28 |
import java.text.SimpleDateFormat; |
29 | 29 |
|
30 |
import edu.ucsb.nceas.MCTestCase; |
|
30 | 31 |
import edu.ucsb.nceas.metacat.DBConnectionPool; |
31 | 32 |
import edu.ucsb.nceas.metacat.EventLog; |
32 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
|
33 |
import edu.ucsb.nceas.metacat.service.ServiceException; |
|
34 |
import edu.ucsb.nceas.metacat.util.SystemUtil; |
|
35 | 33 |
|
36 |
import junit.framework.TestCase; |
|
37 |
|
|
38 | 34 |
/** |
39 | 35 |
* Test the logging facility against the database connection. |
40 | 36 |
* |
41 | 37 |
* @author jones |
42 | 38 |
*/ |
43 |
public class EventLogTest extends TestCase |
|
39 |
public class EventLogTest extends MCTestCase
|
|
44 | 40 |
{ |
45 | 41 |
|
46 | 42 |
protected void setUp() throws Exception |
47 |
{ |
|
48 |
|
|
43 |
{ |
|
49 | 44 |
super.setUp(); |
50 |
try { |
|
51 |
PropertyService.getInstance("build/tests"); |
|
52 |
DBConnectionPool pool = DBConnectionPool.getInstance(); |
|
53 |
} catch (ServiceException se) { |
|
54 |
fail(se.getMessage()); |
|
55 |
} |
|
45 |
DBConnectionPool pool = DBConnectionPool.getInstance(); |
|
56 | 46 |
} |
57 | 47 |
|
58 | 48 |
/** |
Also available in: Unified diff
Extend MCTestCase