org.fcrepo.test.api
Class TestHTTPStatusCodesConfigB

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.custommonkey.xmlunit.XMLTestCase
              extended by org.fcrepo.test.FedoraTestCase
                  extended by org.fcrepo.test.FedoraServerTestCase
                      extended by org.fcrepo.test.api.TestHTTPStatusCodesConfigB
All Implemented Interfaces:
junit.framework.Test, org.custommonkey.xmlunit.XMLConstants, org.custommonkey.xmlunit.XSLTConstants, Constants, FedoraTestConstants

public class TestHTTPStatusCodesConfigB
extends FedoraServerTestCase

HTTP status code tests to be run when API-A authentication is on.

Author:
Chris Wilper

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.Constants
ACCESS, ACTION, API, ATOM_APIM1_0, ATOM_ZIP1_1, ATOM1_1, AUDIT, AUDIT1_0, BATCH_MODIFY, BATCH_MODIFY1_1, BE_SECURITY, BE_SECURITY1_0, BINDING_SPEC, DATASTREAM, DC, DISSEMINATOR, DS_COMPOSITE_MODEL, DS_COMPOSITE_MODEL1_0, DS_INPUT_SPEC1_0, DS_INPUT_SPEC1_1, ENVIRONMENT, FCFG, FEDORA, FEDORA_APP_CONTEXT_NAME, FEDORA_DEFAULT_APP_CONTEXT, FEDORA_HOME, FOXML, FOXML1_0, FOXML1_0_LEGACY, FOXML1_1, HTTP_REQUEST, MANAGEMENT, METHOD_MAP, METS, METS_EXT, METS_EXT1_0, METS_EXT1_0_LEGACY, METS_EXT1_1, MODEL, MULGARA, OAI_DC, OAI_DC2_0, OAI_FRIENDS, OAI_FRIENDS2_0, OAI_IDENTIFIER, OAI_IDENTIFIER2_0, OAI_PMH, OAI_PMH2_0, OAI_PROV, OAI_PROV2_0, OBJ_DATASTREAMS1_0, OBJ_HISTORY1_0, OBJ_ITEMS1_0, OBJ_METHODS1_0, OBJ_PROFILE1_0, OBJ_VALIDATION1_0, OBJECT, OLD_XLINK, PID_LIST1_0, RDF, RDF_XSD, RECOVERY, RELS_EXT, RELS_EXT1_0, RELS_INT1_0, REPO_DESC1_0, RESOURCE, SDEF, SDEF_METHOD_MAP1_0, SDEP, SDEP_METHOD_MAP1_0, SDEP_METHOD_MAP1_1, SERVICE_PROFILE, SOAP, SOAP_ENC, SUBJECT, TYPES, VIEW, WSDL, WSDL_HTTP, WSDL_MIME, XACML_POLICY, XACML_POLICY1_0, XLINK, XML_XSD, XMLNS, XSI
 
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
TestHTTPStatusCodesConfigB()
           
 
Method Summary
static junit.framework.Test suite()
           
 void testDescribeRepository_BadAuthN()
           
 void testDescribeRepository_BadAuthZ()
           
 void testFindObjects_BadAuthN()
           
 void testFindObjects_BadAuthZ()
           
 void testGetDatastreamDissemination_BadAuthN()
           
 void testGetDatastreamDissemination_BadAuthZ()
           
 void testGetDissemination_Custom_BadAuthN()
           
 void testGetDissemination_Custom_BadAuthZ()
           
 void testGetDissemination_Default_BadAuthN()
           
 void testGetDissemination_Default_BadAuthZ()
           
 void testGetObjectHistory_BadAuthN()
           
 void testGetObjectHistory_BadAuthZ()
           
 void testGetObjectProfile_BadAuthN()
           
 void testGetObjectProfile_BadAuthZ()
           
 void testListDatastreams_BadAuthN()
           
 void testListDatastreams_BadAuthZ()
           
 void testListMethods_BadAuthN()
           
 void testListMethods_BadAuthZ()
           
 void testRISearch_BadAuthN()
           
 void testRISearch_BadAuthZ()
           
 void testRISearch_OK()
           
 
Methods inherited from class org.fcrepo.test.FedoraServerTestCase
getDemoObjects, getXMLQueryResult, getXMLQueryResult, ingestDemoObjects, ingestDemoObjects, ingestDemoObjects, ingestDemoObjects, main, purgeDemoObjects, purgeDemoObjects, testingAtom, testingAtomZip, 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

TestHTTPStatusCodesConfigB

public TestHTTPStatusCodesConfigB()
Method Detail

suite

public static junit.framework.Test suite()

testDescribeRepository_BadAuthN

public void testDescribeRepository_BadAuthN()
                                     throws Exception
Throws:
Exception

testDescribeRepository_BadAuthZ

public void testDescribeRepository_BadAuthZ()
                                     throws Exception
Throws:
Exception

testGetDatastreamDissemination_BadAuthN

public void testGetDatastreamDissemination_BadAuthN()
                                             throws Exception
Throws:
Exception

testGetDatastreamDissemination_BadAuthZ

public void testGetDatastreamDissemination_BadAuthZ()
                                             throws Exception
Throws:
Exception

testGetDissemination_Default_BadAuthN

public void testGetDissemination_Default_BadAuthN()
                                           throws Exception
Throws:
Exception

testGetDissemination_Default_BadAuthZ

public void testGetDissemination_Default_BadAuthZ()
                                           throws Exception
Throws:
Exception

testGetDissemination_Custom_BadAuthN

public void testGetDissemination_Custom_BadAuthN()
                                          throws Exception
Throws:
Exception

testGetDissemination_Custom_BadAuthZ

public void testGetDissemination_Custom_BadAuthZ()
                                          throws Exception
Throws:
Exception

testGetObjectHistory_BadAuthN

public void testGetObjectHistory_BadAuthN()
                                   throws Exception
Throws:
Exception

testGetObjectHistory_BadAuthZ

public void testGetObjectHistory_BadAuthZ()
                                   throws Exception
Throws:
Exception

testGetObjectProfile_BadAuthN

public void testGetObjectProfile_BadAuthN()
                                   throws Exception
Throws:
Exception

testGetObjectProfile_BadAuthZ

public void testGetObjectProfile_BadAuthZ()
                                   throws Exception
Throws:
Exception

testListDatastreams_BadAuthN

public void testListDatastreams_BadAuthN()
                                  throws Exception
Throws:
Exception

testListDatastreams_BadAuthZ

public void testListDatastreams_BadAuthZ()
                                  throws Exception
Throws:
Exception

testListMethods_BadAuthN

public void testListMethods_BadAuthN()
                              throws Exception
Throws:
Exception

testListMethods_BadAuthZ

public void testListMethods_BadAuthZ()
                              throws Exception
Throws:
Exception

testFindObjects_BadAuthN

public void testFindObjects_BadAuthN()
                              throws Exception
Throws:
Exception

testFindObjects_BadAuthZ

public void testFindObjects_BadAuthZ()
                              throws Exception
Throws:
Exception

testRISearch_OK

public void testRISearch_OK()
                     throws Exception
Throws:
Exception

testRISearch_BadAuthN

public void testRISearch_BadAuthN()
                           throws Exception
Throws:
Exception

testRISearch_BadAuthZ

public void testRISearch_BadAuthZ()
                           throws Exception
Throws:
Exception


Copyright © 2012 DuraSpace. All Rights Reserved.