Revision 7476
Added by ben leinfelder about 12 years ago
test/edu/ucsb/nceas/metacat/replication/ReplicationTest.java | ||
---|---|---|
39 | 39 |
import org.xml.sax.XMLReader; |
40 | 40 |
|
41 | 41 |
import edu.ucsb.nceas.MCTestCase; |
42 |
import edu.ucsb.nceas.metacat.DocInfoHandler; |
|
43 | 42 |
import edu.ucsb.nceas.metacat.MetaCatServlet; |
44 |
import edu.ucsb.nceas.metacat.accesscontrol.AccessControlInterface; |
|
45 | 43 |
import edu.ucsb.nceas.metacat.client.Metacat; |
46 | 44 |
import edu.ucsb.nceas.metacat.client.MetacatFactory; |
47 | 45 |
import edu.ucsb.nceas.metacat.client.MetacatInaccessibleException; |
... | ... | |
50 | 48 |
import edu.ucsb.nceas.metacat.util.MetacatUtil; |
51 | 49 |
import edu.ucsb.nceas.metacat.util.ReplicationUtil; |
52 | 50 |
|
51 |
import edu.ucsb.nceas.utilities.access.AccessControlInterface; |
|
52 |
import edu.ucsb.nceas.utilities.access.DocInfoHandler; |
|
53 |
|
|
54 |
|
|
53 | 55 |
/** |
54 | 56 |
* A JUnit test for testing Metacat replication |
55 | 57 |
*/ |
test/edu/ucsb/nceas/metacattest/AccessAPITest.java | ||
---|---|---|
33 | 33 |
import junit.framework.TestSuite; |
34 | 34 |
|
35 | 35 |
import edu.ucsb.nceas.MCTestCase; |
36 |
import edu.ucsb.nceas.metacat.DocInfoHandler; |
|
37 | 36 |
import edu.ucsb.nceas.metacat.accesscontrol.AccessControlException; |
38 |
import edu.ucsb.nceas.metacat.accesscontrol.AccessControlInterface; |
|
39 | 37 |
import edu.ucsb.nceas.metacat.accesscontrol.AccessControlList; |
40 |
import edu.ucsb.nceas.metacat.accesscontrol.XMLAccessDAO; |
|
41 | 38 |
import edu.ucsb.nceas.metacat.client.InsufficientKarmaException; |
42 | 39 |
import edu.ucsb.nceas.metacat.client.MetacatAuthException; |
43 | 40 |
import edu.ucsb.nceas.metacat.client.MetacatException; |
44 | 41 |
import edu.ucsb.nceas.metacat.client.MetacatInaccessibleException; |
45 | 42 |
import edu.ucsb.nceas.metacat.properties.PropertyService; |
46 | 43 |
import edu.ucsb.nceas.utilities.PropertyNotFoundException; |
44 |
import edu.ucsb.nceas.utilities.access.DocInfoHandler; |
|
45 |
import edu.ucsb.nceas.utilities.access.XMLAccessDAO; |
|
46 |
import edu.ucsb.nceas.utilities.access.AccessControlInterface; |
|
47 | 47 |
|
48 |
|
|
48 | 49 |
import org.xml.sax.ContentHandler; |
49 | 50 |
import org.xml.sax.ErrorHandler; |
50 | 51 |
import org.xml.sax.InputSource; |
Also available in: Unified diff
move DocInfo parsing into utilities project so that it can be used by Morpho as well as Metacat.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5737