Summary

[ summary ] [ package list ] [ test cases ]

Tests Errors Failures Success rate Time(s)
297 0 0 100.00% 1.59

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List

[ summary ] [ package list ] [ test cases ]

Package Tests Errors Failures Success Rate Time
org.jcontainer.dna 31 0 0 100.00% 0.12
org.jcontainer.dna.impl 266 0 0 100.00% 1.46

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.jcontainer.dna

Class Tests Errors Failures Success Rate Time
MissingResourceExceptionTestCase 5 0 0 100.00% 0.063
ConfigurationExceptionTestCase 14 0 0 100.00% 0.017
ParameterExceptionTestCase 5 0 0 100.00% 0.012
LogEnabledTestCase 5 0 0 100.00% 0.019
ReleaseUtilTestCase 2 0 0 100.00% 0.011

org.jcontainer.dna.impl

Class Tests Errors Failures Success Rate Time
SAXConfigurationHandlerTestCase 21 0 0 100.00% 0.052
DefaultResourceLocatorTestCase 6 0 0 100.00% 0.031
SAXConfigurationSerializerTestCase 7 0 0 100.00% 0.080
DefaultParametersTestCase 26 0 0 100.00% 0.040
DefaultConfigurationTestCase 55 0 0 100.00% 0.087
Log4JLoggerTestCase 24 0 0 100.00% 0.684
FreezableTestCase 3 0 0 100.00% 0.017
ConfigurationUtilTestCase 28 0 0 100.00% 0.251
LogkitLoggerTestCase 24 0 0 100.00% 0.090
ContainerUtilTestCase 16 0 0 100.00% 0.068
Jdk14LoggerTestCase 24 0 0 100.00% 0.025
ConsoleLoggerTestCase 32 0 0 100.00% 0.040

Test Cases

[ summary ] [ package list ] [ test cases ]

MissingResourceExceptionTestCase

testMissingResourceExceptionConstruction Success 0.01
testMissingResourceExceptionConstructionWithNullCause Success 0.00
testMissingResourceExceptionConstructionWithNullKey Success 0.00
testMissingResourceExceptionConstructionWithNullMessage Success 0.00
testMissingResourceExceptionConstructionWithSimpleCtor Success 0.00

SAXConfigurationHandlerTestCase

testGetLocationWithNullLocator Success 0.00
testGetLocationWithNullSystemId Success 0.00
testGetLocationWithNonNullSystemId Success 0.00
testGetLocationWithLineSet Success 0.00
testGetLocationWithColSet Success 0.00
testGetLocationWithColSetButLineNotSet Success 0.00
testWarningRethrowsException Success 0.00
testErrorRethrowsException Success 0.00
testFatalRethrowsException Success 0.00
testCreateSimpleConfiguration Success 0.01
testCreateConfigurationWithValue Success 0.00
testCreateConfigurationWithValueThatIsIntercepted Success 0.00
testCreateConfigurationWithValueInMultipleFragments Success 0.00
testCreateConfigurationWithChildElement Success 0.01
testCreateConfigurationWithDeepChildElements Success 0.00
testCreateConfigurationWithChildElementContaingContent Success 0.00
testCreateConfigurationWithMixedContent Success 0.00
testClearHandler Success 0.00
testCreateConfigurationContainingEmptySeparator Success 0.00
testCreateConfigurationWithAttributes Success 0.00
testCreateConfigurationWithAttributesWithInterception Success 0.00

DefaultResourceLocatorTestCase

testLookupMissingResourceWithNoParent Success 0.01
testLookupMissingResourceWithParent Success 0.00
testLookupResourceInLocalLocator Success 0.00
testLookupResourceInParentLocator Success 0.00
testPutWithNullKey Success 0.00
testPutWithNullResource Success 0.00

SAXConfigurationSerializerTestCase

testSerializeZeroLengthAttributes Success 0.01
testSerializeAttributes Success 0.00
testSerializeElementWithNoContentOrChildren Success 0.04
testSerializeElementWithValue Success 0.00
testSerializeElementWithChild Success 0.00
testSerializeElementWithChildAndContent Success 0.00
testSerializeElementAsPartOfDocument Success 0.00

DefaultParametersTestCase

testGetParameter Success 0.01
testGetMissingParameter Success 0.00
testGetParameterNames Success 0.00
testGetParameterWithNullName Success 0.00
testGetParameterWDefaultWithNullName Success 0.00
testsetParameterWithNullName Success 0.00
testsetParameterWithNullValue Success 0.00
testNullPassedIntoCtor Success 0.00
testGetParameterAsBoolean Success 0.00
testGetParameterAsInteger Success 0.00
testGetParameterAsIntegerWithMalformedValue Success 0.00
testGetParameterAsLong Success 0.00
testGetParameterAsLongWithMalformedValue Success 0.00
testGetParameterAsFloat Success 0.00
testGetParameterAsFloatWithMalformedValue Success 0.00
testGetChildParametersWithZeroEntries Success 0.00
testGetChildParametersWithSplitEntries Success 0.00
testGetChildParametersWithSplitEntriesAcrossMultipleChildren Success 0.00
testMakeReadOnlyMakesChildrenReadOnly Success 0.00
testGetChildParametersWithNullPrefix Success 0.00
testIsParameterWithNullName Success 0.00
testGetParameterAsBooleanWithDefault Success 0.00
testGetParameterAsIntegerWithDefault Success 0.00
testGetParameterAsLongWithDefault Success 0.00
testGetParameterAsFloatWithDefault Success 0.00
testMakeReadOnlyWithNonFreezableChildParameters Success 0.00

DefaultConfigurationTestCase

testBasicConfigurationElement Succe ss 0.01
testNullNameInCtor Success 0.00
testNullLocationInCtor Success 0.00
testNullPathInCtor Success 0.00
testNullNameInSetAttribute Success 0.00
testNullValueInSetAttribute Success 0.00
testNullValueInSetValue Success 0.00
testNullChildinAddChild Success 0.00
testNullNameInGetAttribute Success 0.00
testNullNameInGetChild Success 0.00
testNullNameInGetChildren Success 0.00
testGetValueAsText Success 0.00
testGetNullValueAsText Success 0.00
testGetValueAsBoolean Success 0.00
testGetNullValueAsBoolean Success 0.00
testGetValueAsInteger Success 0.00
testGetNullValueAsInteger Success 0.00
testGetMalformedValueAsInteger Success 0.00
testGetValueAsLong Success 0.00
testGetNullValueAsLong Success 0.00
testGetMalformedValueAsLong Success 0.00
testGetValueAsFloat Success 0.00
testGetNullValueAsFloat Success 0.00
testGetMalformedValueAsFloat Success 0.00
testGetAttributeAsText Success 0.00
testGetMissingAttributeAsText Success 0.00
testGetAttributeAsBoolean Success 0.00
testGetMissingAttributeAsBoolean Success 0.00
testGetAttributeAsInteger Success 0.00
testGetMissingAttributeAsInteger Success 0.00
testGetMalformedAttributeAsInteger Success 0.00
testGetAttributeAsLong Success 0.00
testGetMissingAttributeAsLong Success 0.00
testGetMalformedAttributeAsLong Success 0.00
testGetAttributeAsFloat Success 0.00
testGetMissingAttributeAsFloat Success 0.00
testGetMalformedAttributeAsFloat Success 0.00
testGetAttributes Success 0.00
testGetAttributesWithNoAttributesSet Success 0.00
testGetChildren Success 0.00
testGetChildrenWithNoChildren Success 0.00
testGetChild Success 0.00
testGetNotExistentChildWithNoAutoCreateButOtherChildren Success 0.00
testGetNotExistentChildWithNoAutoCreate Success 0.00
testGetNotExistentChildWithAutoCreate Success 0.00
testGuardAgainstMixedContentWhenAddingValue Success 0.00
testGuardAgainstMixedContentWhenAddingChild Success 0.00
testGetChildrenWithName Success 0.00
testGetChildrenWithNameAndNoExistingChildren Success 0.00
testAutogeneratePath Success 0.00
testMakeReadOnlyWithNoChildren Success 0.00
testMakeReadOnlyWithChildren Success 0.00
testMakeReadOnlyWithNonFreezableChildren Success 0.00
testToString Success 0.00
testToStringWithAttributes Success 0.00

Log4JLoggerTestCase

testLog4JLoggerEmptyCtor Success 0.01
testLog4JLoggerGetChildLogger Success 0.14
testLog4JLoggerTraceEnabled Success 0.03
testLog4JLoggerTraceDisabled Success 0.00
testLog4JLoggerTraceWithExceptionEnabled Success 0.08
testLog4JLoggerTraceWithExceptionDisabled Success 0.00
testLog4JLoggerDebugEnabled Success 0.02
testLog4JLoggerDebugDisabled Success 0.00
testLog4JLoggerDebugWithExceptionEnabled Success 0.08
testLog4JLoggerDebugWithExceptionDisabled Success 0.00
testLog4JLoggerInfoEnabled Success 0.02
testLog4JLoggerInfoDisabled Success 0.00
testLog4JLoggerInfoWithExceptionEnabled Success 0.07
testLog4JLoggerInfoWithExceptionDisabled Success 0.00
testLog4JLoggerWarnEnabled Success 0.02
testLog4JLoggerWarnDisabled Success 0.00
testLog4JLoggerWarnWithExceptionEnabled Success 0.08
testLog4JLoggerWarnWithExceptionDisabled Success 0.00
testLog4JLoggerErrorEnabled Success 0.02
testLog4JLoggerErrorWithExceptionEnabled Success 0.08
testConsoleLevelComparisonWithDebugEnabled Success 0.00
testConsoleLevelComparisonWithInfoEnabled Success 0.00
testConsoleLevelComparisonWithWarnEnabled Success 0.00
testConsoleLevelComparisonWithErrorEnabled Success 0.00

FreezableTestCase

testMakeReadOnly Success 0.01
testCheckWriteable Success 0.00
testCheckWriteableOnWriteable Success 0.00

ConfigurationUtilTestCase

testToElementWithBasicConfiguration Success 0.03
testToElementWithConfigurationWithValue Success 0.01
testToElementWithConfigurationWithAttributes Success 0.00
testToElementWithConfigurationWithChildren Success 0.00
testToElementWithSevereError Success 0.00
testToConfigurationFromBasicElement Success 0.00
testToConfigurationFromElementWithValue Success 0.01
testToConfigurationFromElementWithMultipleValueFragments Success 0.00
testToConfigurationFromElementWithInternalComment Success 0.00
testToConfigurationFromElementWithAttributes Success 0.00
testToConfigurationFromElementWithChildren Success 0.00
testSerializeToResult Success 0.15
testBuildFromXML Success 0.01
testGeneratePathNameFromRootForRoot Success 0.00
testGeneratePathNameFromRoot Success 0.00
testGeneratePathNameFromNonRoot Success 0.00
testEqualsOnEmptyConfigurations Success 0.00
testEqualsWithDifferentNames Success 0.00
testEqualsWithAttributes Success 0.00
testEqualsWithDifferentNumberOfAttributes Success 0.00
testEqualsWithDifferentAttributeNames Success 0.00
testEqualsWithDifferent AttributeValues Success 0.00
testEqualsWithChild Success 0.00
testEqualsWithDifferentChildCount Success 0.00
testEqualsWithDifferentChildren Success 0.00
testEqualsWithContent Success 0.00
testEqualsWithDifferentContent Success 0.00
testEqualsWithContentOnOne Success 0.00

LogkitLoggerTestCase

testConsoleLevelComparisonWithDebugEnabled Success 0.04
testConsoleLevelComparisonWithInfoEnabled Success 0.00
testConsoleLevelComparisonWithWarnEnabled Success 0.00
testConsoleLevelComparisonWithErrorEnabled Success 0.00
testLogkitLoggerEmptyCtor Success 0.00
testLogkitLoggerGetChildLogger Success 0.00
testLogkitLoggerTraceEnabled Success 0.01
testLogkitLoggerTraceDisabled Success 0.00
testLogkitLoggerTraceWithExceptionEnabled Success 0.00
testLogkitLoggerTraceWithExceptionDisabled Success 0.00
testLogkitLoggerDebugEnabled Success 0.00
testLogkitLoggerDebugDisabled Success 0.00
testLogkitLoggerDebugWithExceptionEnabled Success 0.00
testLogkitLoggerDebugWithExceptionDisabled Success 0.00
testLogkitLoggerInfoEnabled Success 0.00
testLogkitLoggerInf oDisabled Success 0.00
testLogkitLoggerInfoWithExceptionEnabled Success 0.00
testLogkitLoggerInfoWithExceptionDisabled Success 0.01
testLogkitLoggerWarnEnabled Success 0.00
testLogkitLoggerWarnDisabled Success 0.00
testLogkitLoggerWarnWithExceptionEnabled Success 0.00
testLogkitLoggerWarnWithExceptionDisabled Success 0.00
testLogkitLoggerErrorEnabled Success 0.00
testLogkitLoggerErrorWithExceptionEnabled Success 0.00

ContainerUtilTestCase

testEnableLoggingOnComponentNotImplementingStage Success 0.00
testEnableLoggingOnComponentImple mentingStage Success 0.01
testEnableLoggingOnComponentImplementingStageButNullLogger Success 0.00
testComposeOnComponentNotImplementingStage Success 0.00
testComposeOnComponentImplementingStage Success 0.01
testComposeOnComponentImplementingStageButNullLogger Success 0.00
testParameterizeOnComponentNotImplementingStage Success 0.00
testParameterizeOnComponentImplementingStage Success 0.01
testParameterizeOnComponentImplementingStageButNullLogger Success 0.00
testConfigureOnComponentNotImplementingStage Success 0.00
testConfigureOnComponentImplementingStage Success 0.01
testConfigureOnComponentImplementingStageButNullLogger Success 0.00
testInitializeOnComponentNotImplementingStage Success 0.00
testInitializeOnComponentImplementingStage Success 0.00
testDisposeOnComponentNotImplementingStage Success 0.00
testDisposeOnComponentImplementingStage Success 0.00

Jdk14LoggerTestCase

testConsoleLevelComparisonWithDebugEnabled Success 0.00
testConsoleLevelComparisonWithInfoEnabled Success 0.00
testConsoleLevelComparisonWithWarnEnabled Success 0.00
testConsoleLevelComparisonWithErrorEnabled Success 0.00
testLogkitLoggerEmptyCtor Success 0.00
testJdk14LoggerGetChildLogger Success 0.00
testJdk14LoggerTraceEnabled Success 0.00
testJdk14LoggerTraceDisabled Success 0.00
testJdk14LoggerTraceWithExceptionEnabled Success 0.00
testJdk14LoggerTraceWithExceptionDisabled Success 0.00
testJdk14LoggerDebugEnabled Success 0.00
testJdk14LoggerDebugDisabled Success 0.00
testJdk14LoggerDebugWithExceptionEnabled Success 0.00
testJdk14LoggerDebugWithExceptionDisabled Success 0.00
testJdk14LoggerInfoEnabled Success 0.00
testJdk14LoggerInfoDisabled Success 0.00
testJdk14LoggerInfoWithExceptionEnabled Success 0.00
testJdk14LoggerInfoWithExceptionDisabled Success 0.00
testJdk14LoggerWarnEnabled Success 0.00
testJdk14LoggerWarnDisabled Success 0.00
testJdk14LoggerWarnWithExceptionEnabled Success 0.00
testJdk14LoggerWarnWithExceptionDisabled Success 0.00
testJdk14LoggerErrorEnabled Success 0.00
testJdk14LoggerErrorWithExceptionEnabled Success 0.00

ConsoleLoggerTestCase

testConsoleLevelComparisonWithDebugEnabled Success 0.00
testConsoleLevelComparisonWithInfoEnabled Success 0.00
testConsoleLevelComparisonWithWarnEnabled Success 0.00
testConsoleLevelComparisonWithErrorEnabled Success 0.00
testConsoleWithEmptyOutput Success 0.00
testMockConsoleEmptyCtor Success 0.00
testMockConsoleGetChildLogger Success 0.00
testMockConsoleOutputToConsole Success 0.00
testMockConsoleOutputToConsoleWithException Success 0.00
testMockConsoleTraceEnabled Success 0.00
testMockConsoleTraceDisabled Success 0.00
testMockConsoleTraceWithExceptionEnabled Success 0.00
testMockConsoleTraceWithExceptionDisabled Success 0.00
testMockConsoleDebugEnabled Success 0.00
testMockConsoleDebugDisabled Success 0.00
testMockConsoleDebugWithExceptionEnabled Success 0.00
testMockConsoleDebugWithExceptionDisabled Success 0.00
testMockConsoleInfoEnabled Success 0.00
testMockConsoleInfoDisabled Success 0.00
testMockConsoleInfoWithExceptionEnabled Success 0.00
testMockConsoleInfoWithExceptionDisabled Success 0.00
testMockConsoleWarnEnabled Success 0.00
testMockConsoleWarnDisabled Success 0.00
testMockConsoleWarnWithExceptionEnabled Success 0.00
testMockConsoleWarnWithExceptionDisabled Success 0.00
testMockConsoleErrorEnabled Success 0.00
testMockConsoleErrorDisabled Success 0.00
testMockConsoleErrorWith ExceptionEnabled Success 0.00
testMockConsoleErrorWithExceptionDisabled Success 0.00
testConsoleLevelComparisonWithAll Success 0.00
testConsoleLevelComparisonWithNone Success 0.00
testConsoleLevelComparisonWithTraceEnabled Success 0.00

ConfigurationExceptionTestCase

testConfigurationExceptionConstruction Success 0.00
testConfigurationExceptionConstructionWithNullCause Success 0.00
testConfigurationExceptionConstructionWithNullKey Success 0.00
testConfigurationExceptionConstructionWithNullMessage Success 0.00
testConfigurationExceptionConstructionWithNullLocation Success 0.00
testConfigurationExceptionConstructionWith3ArgCtor Success 0.00
testConfigurationExceptionConstructionWith2ArgCtor Success 0.00
testConfigurationExceptionToString Success 0.00
testConfigurationExceptionToStringWithNullPath Success 0.00
testConfigurationExceptionToStringWithNullLocation Success 0.00
testConfigurationExceptionToStringWithNullLocationAndPath Success 0.00
testConfigurationExceptionToStringWithEmptyPath Success 0.00
testConfigurationExceptionToStringWithEmptyLocation Success 0.00
testConfigurationExceptionToStringWithEmptyLocationAndPath Success 0.00

ParameterExceptionTestCase

testParamete rExceptionConstruction Success 0.00
testParameterExceptionConstructionWithNullCause Success 0.00
testParameterExceptionConstructionWithNullKey Success 0.00
testParameterExceptionConstructionWithNullMessage Success 0.00
testParameterExceptionConstructionWithSimpleCtor Success 0.00

LogEnabledTestCase

testGetLogger Success 0.01
testSetupLoggerOnLogEnabled Success 0.00
testSetupLoggerOnNonLogEnabled Success 0.00
testSetupLoggerWithNameOnLogEnabled Success 0.00
testSetupLoggerWithNullName Success 0.00

ReleaseUtilTestCase

testReleaseOnReleasable Success 0.00
testReleaseOnNonReleasable Success 0.00