Revision 4384
Added by daigle over 15 years ago
SitemapTest.java | ||
---|---|---|
30 | 30 |
import java.io.FileReader; |
31 | 31 |
import java.io.IOException; |
32 | 32 |
|
33 |
import edu.ucsb.nceas.MCTestCase; |
|
33 | 34 |
import edu.ucsb.nceas.metacat.DBConnectionPool; |
34 | 35 |
import edu.ucsb.nceas.metacat.Sitemap; |
35 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
|
36 |
import edu.ucsb.nceas.metacat.service.ServiceException; |
|
37 | 36 |
|
38 |
import junit.framework.TestCase; |
|
39 |
|
|
40 | 37 |
/** |
41 | 38 |
* Test the Sitemap class by generating the sitemaps in a separate directory. |
42 | 39 |
* |
43 | 40 |
* @author Matt Jones |
44 | 41 |
*/ |
45 |
public class SitemapTest extends TestCase { |
|
42 |
public class SitemapTest extends MCTestCase {
|
|
46 | 43 |
|
47 | 44 |
private String directoryName = "/tmp/sitemaps"; |
48 | 45 |
|
... | ... | |
51 | 48 |
*/ |
52 | 49 |
protected void setUp() throws Exception { |
53 | 50 |
super.setUp(); |
54 |
try { |
|
55 |
PropertyService.getInstance("build/tests"); |
|
56 |
DBConnectionPool pool = DBConnectionPool.getInstance(); |
|
57 |
} catch (ServiceException se) { |
|
58 |
fail(se.getMessage()); |
|
59 |
} |
|
51 |
|
|
52 |
DBConnectionPool pool = DBConnectionPool.getInstance(); |
|
60 | 53 |
} |
61 | 54 |
|
62 | 55 |
/** |
Also available in: Unified diff
Convert remainder of tests that use PropertyService to extend the MCTestCase class