Revision 3780
Added by daigle over 16 years ago
MetacatClientTest.java | ||
---|---|---|
39 | 39 |
import java.util.TimeZone; |
40 | 40 |
|
41 | 41 |
import edu.ucsb.nceas.metacat.DocumentImpl; |
42 |
import edu.ucsb.nceas.metacat.MetaCatUtil; |
|
42 | 43 |
import edu.ucsb.nceas.metacat.client.DocumentNotFoundException; |
43 | 44 |
import edu.ucsb.nceas.metacat.client.InsufficientKarmaException; |
44 | 45 |
import edu.ucsb.nceas.metacat.client.Metacat; |
... | ... | |
59 | 60 |
*/ |
60 | 61 |
public class MetacatClientTest extends TestCase |
61 | 62 |
{ |
62 |
private String metacatUrl = "@systemidserver@@servlet-path@";
|
|
63 |
private String metacatUrl = MetaCatUtil.getOption("metacatUrl");
|
|
63 | 64 |
private String wrongMetacatUrl= |
64 | 65 |
"http://somepalce.somewhere.com/some/servlet/metacat"; |
65 |
private String username = "@mcuser@";
|
|
66 |
private String password = "@mcpassword@";
|
|
67 |
private String anotheruser = "@mcanotheruser@";
|
|
68 |
private String anotherpassword = "@mcanotherpassword@";
|
|
66 |
private String username = MetaCatUtil.getOption("mcuser");
|
|
67 |
private String password = MetaCatUtil.getOption("mcpassword");
|
|
68 |
private String anotheruser = MetaCatUtil.getOption("mcanotheruser");
|
|
69 |
private String anotherpassword = MetaCatUtil.getOption("mcanotherpassword");
|
|
69 | 70 |
private String failpass = "uidfnkj43987yfdn"; |
70 | 71 |
private String prefix = "test"; |
71 | 72 |
private String newdocid = null; |
Also available in: Unified diff
Changes to remove ANT tokens for the turnkey install project