Revision 4384
Added by daigle over 15 years ago
AuthLdapTest.java | ||
---|---|---|
24 | 24 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
25 | 25 |
*/ |
26 | 26 |
package edu.ucsb.nceas.metacattest; |
27 |
import java.io.File; |
|
28 | 27 |
|
28 |
import edu.ucsb.nceas.MCTestCase; |
|
29 | 29 |
import edu.ucsb.nceas.metacat.AuthLdap; |
30 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
|
31 |
import edu.ucsb.nceas.metacat.util.MetaCatUtil; |
|
32 | 30 |
import junit.framework.Test; |
33 |
import junit.framework.TestCase; |
|
34 | 31 |
import junit.framework.TestSuite; |
35 | 32 |
|
36 | 33 |
|
37 | 34 |
/* |
38 | 35 |
* A junit test class to test public methods in AuthLdap class. |
39 | 36 |
*/ |
40 |
public class AuthLdapTest extends TestCase |
|
37 |
public class AuthLdapTest extends MCTestCase
|
|
41 | 38 |
{ |
42 | 39 |
// Constants |
43 | 40 |
private static final String USER = "uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org"; |
44 | 41 |
private static final String PASS = "kepler"; |
45 | 42 |
|
46 |
|
|
47 |
private MetaCatUtil util; |
|
48 |
/* Initialize properties*/ |
|
49 |
static |
|
50 |
{ |
|
51 |
try |
|
52 |
{ |
|
53 |
PropertyService.getInstance("build/tests"); |
|
54 |
} |
|
55 |
catch(Exception e) |
|
56 |
{ |
|
57 |
System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage()); |
|
58 |
} |
|
59 |
} |
|
60 |
|
|
61 | 43 |
/** |
62 | 44 |
* Constructor to build the test |
63 | 45 |
* |
Also available in: Unified diff
Convert remainder of tests that use PropertyService to extend the MCTestCase class