org.kuali.test
Class KNSTestCase

java.lang.Object
  extended by org.junit.Assert
      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.test.KNSTestCase
All Implemented Interfaces:
MethodAware
Direct Known Subclasses:
AssertionUtilsTest, AttachmentTest, AttributeReferenceDummyTest, AttributeReferenceElementsTest, BaseBOClassAndBaseDocumentClassTest, BeanPropertyComparatorTest, BigDecimalFormatterTest, BusinessObjectAttributeEntryTest, BusinessObjectServiceTest, CampusImplTest, CampusTypeImplTest, CellComparatorHelperTest, CountryImplTest, CurrencyFormatterTest, DataDictionaryBuilderTest, DataDictionaryLazyLoadingTest, DataDictionarySearchableAttributeTest, DateFormatterTest, DateTimeServiceTest, DateUtilsTest, DictionaryValidationServiceTest, DocumentAttachmentTest, DocumentAuthorizerBaseTest, EmailAddressValidationPatternTest, ExtensionAttributeTest, FilePropertySourceTest, FloatingPointValidationPatternTest, GuidTest, InactivateableFromToServiceTest, JavaClassValidationPatternTest, KualiInquirableTest, KualiLookupableTest, KualiMaintainableTest, KualiRuleServiceTest, KualiXMLAttributeImplTest, LookupResultsServiceTest, LookupResultsTest, LookupServiceTest, MaintenanceDocumentDictionaryServiceTest, MaintenanceDocumentTest, MaskFormatterSubStringTest, MessageMapTest, MonthValidationPatternTest, NoteServiceTest, NoteTypeTest, NumberUtilsTest, ObjectUtilsTest, OjbKualiIntegerPercentageFieldConversionTest, PatternedStringBuilderTest, PersistableAttachmentBaseTest, PersistableBusinessObjectValuesFinderTest, PessimisticLockServiceTest, PostalCodeImplTest, PromptBeforeValidationContinuationBaseTest, PropertyHolderTest, PropertyTreeTest, SearchAttributeIndexRequestTest, SessionDocumentTest, StateImplTest, TypedArrayListTest, TypeUtilsTest, UrlFactoryTest, WebUtilsTest, WorkflowInfoServiceTest, YearValidationPatternTest, ZipcodeValidationPatternTest

public abstract class KNSTestCase
extends RiceInternalSuiteDataTestCase

Default test base for a full KNS enabled unit test.

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

Field Summary
private  String contextName
           
private  String relativeWebappRoot
           
private static String SQL_FILE
           
private  TransactionalLifecycle transactionalLifecycle
           
private static String XML_FILE
           
 
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
KNSTestCase()
           
 
Method Summary
protected  String getContextName()
           
protected  Lifecycle getLoadApplicationLifecycle()
           
protected  String getModuleName()
           
protected  int getPort()
           
protected  String getRelativeWebappRoot()
           
protected  List<Lifecycle> getSuiteLifecycles()
           
protected  void loadSuiteTestData()
           
protected  void setContextName(String contextName)
           
protected  void setRelativeWebappRoot(String relativeWebappRoot)
           
 void setUp()
           
 void tearDown()
           
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKNSDefaultSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getPerTestLifecycles, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles
 
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQL_FILE

private static final String SQL_FILE
See Also:
Constant Field Values

XML_FILE

private static final String XML_FILE
See Also:
Constant Field Values

contextName

private String contextName

relativeWebappRoot

private String relativeWebappRoot

transactionalLifecycle

private TransactionalLifecycle transactionalLifecycle
Constructor Detail

KNSTestCase

public KNSTestCase()
Method Detail

loadSuiteTestData

protected void loadSuiteTestData()
                          throws Exception
Overrides:
loadSuiteTestData in class RiceInternalSuiteDataTestCase
Throws:
Exception

getSuiteLifecycles

protected List<Lifecycle> getSuiteLifecycles()
Overrides:
getSuiteLifecycles in class RiceTestCase

getLoadApplicationLifecycle

protected Lifecycle getLoadApplicationLifecycle()
Overrides:
getLoadApplicationLifecycle in class RiceTestCase

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class RiceTestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class RiceTestCase
Throws:
Exception

getModuleName

protected String getModuleName()
Specified by:
getModuleName in class RiceTestCase

getContextName

protected String getContextName()

setContextName

protected void setContextName(String contextName)

getPort

protected int getPort()

getRelativeWebappRoot

protected String getRelativeWebappRoot()

setRelativeWebappRoot

protected void setRelativeWebappRoot(String relativeWebappRoot)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.