Revision 4145
Added by daigle almost 16 years ago
OnlineDataAccessTest.java | ||
---|---|---|
33 | 33 |
import java.util.SimpleTimeZone; |
34 | 34 |
import java.util.TimeZone; |
35 | 35 |
|
36 |
import edu.ucsb.nceas.MCTestCase; |
|
36 | 37 |
import edu.ucsb.nceas.metacat.client.InsufficientKarmaException; |
37 | 38 |
import edu.ucsb.nceas.metacat.client.Metacat; |
38 | 39 |
import edu.ucsb.nceas.metacat.client.MetacatAuthException; |
... | ... | |
40 | 41 |
import edu.ucsb.nceas.metacat.client.MetacatFactory; |
41 | 42 |
import edu.ucsb.nceas.metacat.client.MetacatInaccessibleException; |
42 | 43 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
43 |
import edu.ucsb.nceas.metacat.util.SystemUtil; |
|
44 | 44 |
import edu.ucsb.nceas.utilities.IOUtil; |
45 | 45 |
import edu.ucsb.nceas.utilities.PropertyNotFoundException; |
46 | 46 |
import junit.framework.Test; |
47 |
import junit.framework.TestCase; |
|
48 | 47 |
import junit.framework.TestSuite; |
49 | 48 |
import java.io.File; |
50 | 49 |
|
... | ... | |
52 | 51 |
* A JUnit test for testing Access Control for online data in Metacat |
53 | 52 |
*/ |
54 | 53 |
public class OnlineDataAccessTest |
55 |
extends TestCase { |
|
54 |
extends MCTestCase {
|
|
56 | 55 |
|
57 | 56 |
private static String metacatUrl; |
58 | 57 |
private static String username; |
... | ... | |
61 | 60 |
private static String anotherpassword; |
62 | 61 |
static { |
63 | 62 |
try { |
64 |
metacatUrl = SystemUtil.getServletURL();
|
|
63 |
metacatUrl = PropertyService.getProperty("test.metacat.url");
|
|
65 | 64 |
username = PropertyService.getProperty("test.mcuser"); |
66 | 65 |
password = PropertyService.getProperty("test.mcpassword"); |
67 | 66 |
anotheruser = PropertyService.getProperty("test.mcanotheruser"); |
Also available in: Unified diff
Extend MCTestCase to handle initialization of PropertyService