|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.custommonkey.xmlunit.XMLTestCase
org.fcrepo.test.FedoraTestCase
org.fcrepo.test.FedoraServerTestCase
public abstract class FedoraServerTestCase
Base class for JUnit tests that assume a running Fedora instance.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Fields inherited from class org.fcrepo.test.FedoraTestCase |
|---|
ssl |
| Fields inherited from interface org.fcrepo.common.FedoraTestConstants |
|---|
BESECURITY, DEMO_DIR_PREFIX, FCFG, FEDORA_HOME_CLIENT, FEDORA_HOME_CLIENT_BIN, FEDORA_HOME_SERVER, FEDORA_HOME_SERVER_CONFIG, FEDORA_PASSWORD, FEDORA_USERNAME, NS_FCFG, NS_FEDORA_TYPES, NS_FEDORA_TYPES_PREFIX |
| Fields inherited from interface org.custommonkey.xmlunit.XSLTConstants |
|---|
JAVA5_XSLTC_FACTORY_NAME, XSLT_END, XSLT_IDENTITY_TEMPLATE, XSLT_START, XSLT_START_NO_VERSION, XSLT_STRIP_COMMENTS_TEMPLATE, XSLT_STRIP_WHITESPACE, XSLT_XML_OUTPUT_NOINDENT |
| Fields inherited from interface org.custommonkey.xmlunit.XMLConstants |
|---|
CLOSE_NODE, END_CDATA, END_COMMENT, END_PROCESSING_INSTRUCTION, OPEN_END_NODE, OPEN_START_NODE, START_CDATA, START_COMMENT, START_DOCTYPE, START_PROCESSING_INSTRUCTION, W3C_XML_SCHEMA_INSTANCE_NO_NAMESPACE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_INSTANCE_NS_URI, W3C_XML_SCHEMA_INSTANCE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_NS_URI, XML_DECLARATION, XMLNS_PREFIX, XPATH_ATTRIBUTE_IDENTIFIER, XPATH_CHARACTER_NODE_IDENTIFIER, XPATH_COMMENT_IDENTIFIER, XPATH_NODE_INDEX_END, XPATH_NODE_INDEX_START, XPATH_PROCESSING_INSTRUCTION_IDENTIFIER, XPATH_SEPARATOR |
| Constructor Summary | |
|---|---|
FedoraServerTestCase()
|
|
FedoraServerTestCase(String name)
|
|
| Method Summary | |
|---|---|
static Set<String> |
getDemoObjects()
Gets the PIDs of objects in the "demo" pid namespace that are in the repository |
Document |
getXMLQueryResult(FedoraClient client,
String location)
|
Document |
getXMLQueryResult(String location)
Returns the requested HTTP resource as an XML Document |
static void |
ingestDemoObjects()
|
static void |
ingestDemoObjects(FedoraAPIAMTOM apia,
FedoraAPIMMTOM apim)
|
static void |
ingestDemoObjects(String path)
Ingest a specific directory of demo objects. |
static void |
ingestDemoObjects(String path,
FedoraAPIAMTOM apia,
FedoraAPIMMTOM apim)
|
static void |
main(String[] args)
|
static void |
purgeDemoObjects()
|
static void |
purgeDemoObjects(FedoraAPIMMTOM apim)
|
static boolean |
testingAtom()
|
static boolean |
testingAtomZip()
|
static boolean |
testingMETS()
|
| Methods inherited from class org.fcrepo.test.FedoraTestCase |
|---|
getBaseURL, getDemoAppServerContext, getDemoBaseURL, getFedoraAppServerContext, getFedoraClient, getFedoraClient, getHost, getPassword, getPort, getProtocol, getServerConfiguration, getUsername |
| Methods inherited from class org.custommonkey.xmlunit.XMLTestCase |
|---|
assertNodeTestPasses, assertNodeTestPasses, assertNodeTestPasses, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLIdentical, assertXMLIdentical, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXpathEvaluatesTo, assertXpathEvaluatesTo, assertXpathEvaluatesTo, assertXpathExists, assertXpathExists, assertXpathExists, assertXpathNotExists, assertXpathNotExists, assertXpathNotExists, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, compareXML, compareXML, compareXML, compareXML, compareXML, compareXML |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FedoraServerTestCase()
public FedoraServerTestCase(String name)
| Method Detail |
|---|
public Document getXMLQueryResult(String location)
throws Exception
location - a URL relative to the Fedora base URL
Exception
public Document getXMLQueryResult(FedoraClient client,
String location)
throws Exception
Exceptionpublic static boolean testingMETS()
public static boolean testingAtom()
public static boolean testingAtomZip()
public static void ingestDemoObjects()
throws Exception
Exception
public static void ingestDemoObjects(FedoraAPIAMTOM apia,
FedoraAPIMMTOM apim)
throws Exception
Exception
public static void ingestDemoObjects(String path)
throws Exception
Given a path relative to the format-independent demo object hierarchy, will ingest all files in the hierarchy denoted by the path.
ingestDemoObjects(local-server-demos) will ingest all files
underneath the client/demo/[format]/local-server-demos/
hierarchy
path - format-independent path to a directory within the demo object
hierarchy.
Exception
public static void ingestDemoObjects(String path,
FedoraAPIAMTOM apia,
FedoraAPIMMTOM apim)
throws Exception
Exception
public static Set<String> getDemoObjects()
throws Exception
Exception
public static void purgeDemoObjects()
throws Exception
Exception
public static void purgeDemoObjects(FedoraAPIMMTOM apim)
throws Exception
Exceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||