Revision 3873
Added by Jing Tao over 16 years ago
test/edu/ucsb/nceas/metacattest/InlineDataAccessTest.java | ||
---|---|---|
41 | 41 |
import edu.ucsb.nceas.metacat.client.MetacatFactory; |
42 | 42 |
import edu.ucsb.nceas.metacat.client.MetacatInaccessibleException; |
43 | 43 |
import edu.ucsb.nceas.utilities.IOUtil; |
44 |
import edu.ucsb.nceas.utilities.Options; |
|
44 | 45 |
import junit.framework.Test; |
45 | 46 |
import junit.framework.TestCase; |
46 | 47 |
import junit.framework.TestSuite; |
... | ... | |
49 | 50 |
/** |
50 | 51 |
* A JUnit test for testing Access Control for Inline data in Metacat |
51 | 52 |
*/ |
52 |
public class InlineDataAccessTest |
|
53 |
extends TestCase { |
|
54 |
|
|
53 |
public class InlineDataAccessTest extends TestCase { |
|
54 |
|
|
55 |
/* Initialize Options*/ |
|
56 |
static |
|
57 |
{ |
|
58 |
try |
|
59 |
{ |
|
60 |
Options.initialize(new File("build/tests/metacat.properties")); |
|
61 |
MetaCatUtil.pathsForIndexing |
|
62 |
= MetaCatUtil.getOptionList(MetaCatUtil.getOption("indexPaths")); |
|
63 |
} |
|
64 |
catch(Exception e) |
|
65 |
{ |
|
66 |
System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage()); |
|
67 |
} |
|
68 |
} |
|
55 | 69 |
private String metacatUrl = MetaCatUtil.getOption("metacatUrl");; |
56 | 70 |
private String username = MetaCatUtil.getOption("mcuser"); |
57 | 71 |
private String password = MetaCatUtil.getOption("mcpassword"); |
Also available in: Unified diff
Check into cvs head. Add the statement to initialize option.