| org.kuali.rice.testharness.KNSTestCase org.kuali.test.KNSTestBase
All known Subclasses: org.kuali.core.lookup.KualiLookupableTest, org.kuali.core.datadictionary.validation.fieldlevel.FixedPointValidationPatternTest, org.kuali.core.datadictionary.DataDictionaryBuilderTest, org.kuali.core.datadictionary.DataDictionaryBuilder_TransactionalDocumentTest, org.kuali.core.datadictionary.validation.charlevel.NumericValidationPatternTest, org.kuali.core.inquiry.KualiInquirableTest, org.kuali.core.datadictionary.exporter.BusinessObjectEntryMapperTest, org.kuali.core.datadictionary.validation.fieldlevel.ZipcodeValidationPatternTest, org.kuali.core.datadictionary.validation.fieldlevel.JavaClassValidationPatternTest, org.kuali.core.datadictionary.ValidationCompletionUtilsTest, org.kuali.core.datadictionary.validation.fieldlevel.FloatingPointValidationPatternTest, org.kuali.core.datadictionary.validation.fieldlevel.DateValidationPatternTest, org.kuali.core.datadictionary.DataDictionaryBuilder_BusinessObjectTest, org.kuali.core.datadictionary.validation.charlevel.AlphaNumericValidationPatternTest, org.kuali.core.datadictionary.validation.charlevel.CharsetValidationPatternTest, org.kuali.core.authorization.AuthorizationStoreTest, org.kuali.core.document.MaintenanceDocumentTest, org.kuali.core.datadictionary.validation.fieldlevel.YearValidationPatternTest, org.kuali.core.datadictionary.exporter.TransactionalDocumentEntryMapperTest, org.kuali.core.datadictionary.validation.fieldlevel.MonthValidationPatternTest, org.kuali.core.datadictionary.ExtensionAttributeTest, org.kuali.core.document.DocumentAuthorizerBaseTest, org.kuali.core.datadictionary.validation.charlevel.AnyCharacterValidationPatternTest, org.kuali.core.datadictionary.DataDictionaryBuilder_MaintenanceDocumentTest, org.kuali.core.datadictionary.validation.fieldlevel.EmailAddressValidationPatternTest, org.kuali.core.datadictionary.DataDictionaryLazyLoadingTest, org.kuali.core.datadictionary.validation.charlevel.AlphaValidationPatternTest, org.kuali.core.datadictionary.exporter.MaintenanceDocumentEntryMapperTest,
KNSTestBase | abstract public class KNSTestBase extends KNSTestCase implements KNSTestConstants(Code) | | This class is the superclass for all test cases which may require the use of
services, or datasources, or any of the other expensive/time-consuming
infrastructure.
For test methods or classes with the
RelatesTo annotation, this class
also wraps any test errors or failures with a notice that the listed JIRA
issues are related. This is to help developers see on test reports what work
may be in progress or recently done for this problem. It will help
distinguish tests which have already been investigated from ones which still
need to be. Test errors before the setUp method, e.g., in connecting to the
database to start a test transaction or to Workflow for a user session, are
not wrapped with these notices. Tests not extending KualiTestBase also do not
get these notices. For the sake of speed, the current JIRA status of the
related issues are not checked. The original Throwable is the cause of the
wrapper, so it appears next in the stacktrace on the test report.
If the
system
property is set, then this class passes (without running its contents) any
test that
RelatesTo a JIRA issue that is currently open or
in-progress or reopened. This is an alternative to
org.kuali.test.suite.OpenOrInProgressOrReopenedSuite for Anthill to
retain the same format of its test report while not revealing any failures of
such tests. When using this system property, keep in mind that it takes well
over a minute to get the list of open issues from JIRA. The list is cached
statically, so it's insignificant to add a minute or two to the time it takes
for the whole Anthill build. But, developers will probably not want to add
this system property to their own environments, because of this delay and so
that they can still work on those tests.
See Also: KNSWithTestSpringContext |
Method Summary | |
protected void | resetLogLevels() Restores the logging-levels changed through calls to setLogLevel to their
original values. | protected void | setLogLevel(String loggerName, Level newLevel) Changes the logging-level associated with the given loggerName to the
given level. | public void | setUp() | public void | tearDown() |
SKIP_OPEN_OR_IN_PROGRESS_OR_REOPENED_JIRA_ISSUES | final public static String SKIP_OPEN_OR_IN_PROGRESS_OR_REOPENED_JIRA_ISSUES(Code) | | |
resetLogLevels | protected void resetLogLevels()(Code) | | Restores the logging-levels changed through calls to setLogLevel to their
original values.
|
setLogLevel | protected void setLogLevel(String loggerName, Level newLevel)(Code) | | Changes the logging-level associated with the given loggerName to the
given level. The original logging-level is saved, and will be
automatically restored at the end of each test.
Parameters: loggerName - name of the logger whose level to change Parameters: newLevel - the level to change to |
|
|