org.kuali.rice.ken.xpath
Class XPathTest

java.lang.Object
  extended by org.kuali.rice.test.BaseRiceTestCase
      extended by org.kuali.rice.test.RiceTestCase
          extended by org.kuali.rice.test.RiceInternalSuiteDataTestCase
              extended by org.kuali.rice.test.BaseModuleTestCase
                  extended by org.kuali.rice.test.BaselineTestCase
                      extended by org.kuali.rice.ken.test.KENTestCase
                          extended by org.kuali.rice.ken.xpath.XPathTest
All Implemented Interfaces:
MethodAware

public class XPathTest
extends KENTestCase

Unit test that tests the affects of various document parsing (DocumentBuilderFactory) and XPath (XPath) flags, such as validation, namespace awareness, and namespace context. Lessons learned:

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.ken.test.KENTestCase
KENTestCase.ClearCacheLifecycle
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
 
Fields inherited from class org.kuali.rice.ken.test.KENTestCase
services, transactionManager
 
Fields inherited from class org.kuali.rice.test.BaselineTestCase
dirty
 
Fields inherited from class org.kuali.rice.test.BaseModuleTestCase
LOG, moduleName
 
Fields inherited from class org.kuali.rice.test.RiceTestCase
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
 
Fields inherited from class org.kuali.rice.test.BaseRiceTestCase
log, method
 
Constructor Summary
XPathTest()
           
 
Method Summary
protected  Document getDocument(boolean namespaceAware, boolean validate)
           
protected  InputSource getTestXMLInputSource()
           
protected  XPath getXPath(Document doc)
           
 void testXPathWithNamespaceAwareDOM()
           
 void testXPathWithPlainDOM()
           
 void testXPathWithValidatedDOMDocNamespace()
           
 void testXPathWithValidatedDOMFixedNamespace()
           
 
Methods inherited from class org.kuali.rice.ken.test.KENTestCase
disableQuartzJobs, enableQuartzJobs, getLoadApplicationLifecycle, getNotificationPerTestLifecycles, getPerTestLifecycles, getPerTestTablesToClear, getSuiteLifecycles, loadDefaultTestData, loadPerTestData, setUpAfterDataLoad
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestTablesNotToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
 
Methods inherited from class org.kuali.rice.test.BaseModuleTestCase
getModuleName
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
 
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathTest

public XPathTest()
Method Detail

getTestXMLInputSource

protected InputSource getTestXMLInputSource()

getXPath

protected XPath getXPath(Document doc)

getDocument

protected Document getDocument(boolean namespaceAware,
                               boolean validate)
                        throws Exception
Throws:
Exception

testXPathWithPlainDOM

public void testXPathWithPlainDOM()
                           throws Exception
Throws:
Exception

testXPathWithNamespaceAwareDOM

public void testXPathWithNamespaceAwareDOM()
                                    throws Exception
Throws:
Exception

testXPathWithValidatedDOMFixedNamespace

public void testXPathWithValidatedDOMFixedNamespace()
                                             throws Exception
Throws:
Exception

testXPathWithValidatedDOMDocNamespace

public void testXPathWithValidatedDOMDocNamespace()
                                           throws Exception
Throws:
Exception


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.