Summary

Tests Errors Failures Skipped Success Rate Time
173 0 0 0 100% 136.718

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

Package List

Package Tests Errors Failures Skipped Success Rate Time
com.atlassian.plugin.impl 3 0 0 0 100% 0.024
com.atlassian.plugin.loaders 27 0 0 0 100% 1.873
com.atlassian.plugin.descriptors 4 0 0 0 100% 0.102
com.atlassian.plugin.store 1 0 0 0 100% 0.001
com.atlassian.plugin.event.impl 11 0 0 0 100% 0.013
com.atlassian.plugin.classloader 22 0 0 0 100% 0.323
com.atlassian.plugin.parsers 1 0 0 0 100% 0.008
com.atlassian.plugin.predicate 15 0 0 0 100% 0.056
com.atlassian.plugin.util 13 0 0 0 100% 0.27
com.atlassian.plugin.loaders.classloading 1 0 0 0 100% 0.002
com.atlassian.plugin.elements 11 0 0 0 100% 0.038
com.atlassian.plugin 62 0 0 0 100% 134.002
com.atlassian.plugin.factories 2 0 0 0 100% 0.006

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

com.atlassian.plugin.impl

Class Tests Errors Failures Skipped Success Rate Time
TestAbstractPlugin 3 0 0 0 100% 0.024

com.atlassian.plugin.loaders

Class Tests Errors Failures Skipped Success Rate Time
TestBundledPluginLoader 1 0 0 0 100% 0.047
TestSinglePluginLoader 11 0 0 0 100% 0.111
TestDirectoryPluginLoader 9 0 0 0 100% 1.349
TestDirectoryScanner 4 0 0 0 100% 0.012
TestClassPathPluginLoader 1 0 0 0 100% 0.348
TestLoaderUtils 1 0 0 0 100% 0.006

com.atlassian.plugin.descriptors

Class Tests Errors Failures Skipped Success Rate Time
TestAbstractModuleDescriptor 4 0 0 0 100% 0.102

com.atlassian.plugin.store

Class Tests Errors Failures Skipped Success Rate Time
TestMemoryPluginStateStore 1 0 0 0 100% 0.001

com.atlassian.plugin.event.impl

Class Tests Errors Failures Skipped Success Rate Time
TestPluginEventManagerImpl 11 0 0 0 100% 0.013

com.atlassian.plugin.classloader

Class Tests Errors Failures Skipped Success Rate Time
TestPluginsClassLoader 6 0 0 0 100% 0.081
TestPluginClassLoader 10 0 0 0 100% 0.237
TestDelegationClassLoader 6 0 0 0 100% 0.005

com.atlassian.plugin.parsers

Class Tests Errors Failures Skipped Success Rate Time
TestXmlDescriptorParser 1 0 0 0 100% 0.008

com.atlassian.plugin.predicate

Class Tests Errors Failures Skipped Success Rate Time
TestEnabledPluginPredicate 3 0 0 0 100% 0.003
TestModuleDescriptorOfTypePredicate 2 0 0 0 100% 0.011
TestModuleDescriptorOfClassPredicate 4 0 0 0 100% 0.004
TestEnabledModulePredicate 3 0 0 0 100% 0.003
TestModuleOfClassPredicate 3 0 0 0 100% 0.035

com.atlassian.plugin.util

Class Tests Errors Failures Skipped Success Rate Time
TestVersionStringComparator 11 0 0 0 100% 0.237
TestClassLoaderUtils 1 0 0 0 100% 0.002
TestPluginUtils 1 0 0 0 100% 0.031

com.atlassian.plugin.loaders.classloading

Class Tests Errors Failures Skipped Success Rate Time
TestDeploymentUnit 1 0 0 0 100% 0.002

com.atlassian.plugin.elements

Class Tests Errors Failures Skipped Success Rate Time
TestResourceDescriptor 11 0 0 0 100% 0.038

com.atlassian.plugin

Class Tests Errors Failures Skipped Success Rate Time
TestDefaultPluginManager 44 0 0 0 100% 133.135
TestDefaultPluginArtifactFactory 2 0 0 0 100% 0.57
TestJarPluginArtifact 1 0 0 0 100% 0.004
TestResources 6 0 0 0 100% 0.014
TestDefaultModuleDescriptorFactory 3 0 0 0 100% 0.019
TestStateAware 4 0 0 0 100% 0.06
TestModuleCompleteKey 2 0 0 0 100% 0.2

com.atlassian.plugin.factories

Class Tests Errors Failures Skipped Success Rate Time
TestXmlDynamicPluginFactory 1 0 0 0 100% 0.005
TestLegacyDynamicPluginFactory 1 0 0 0 100% 0.001

Test Cases

TestEnabledPluginPredicate

testCannotCreateWithNullPluginAccessor 0.001
testMatchesEnabledPlugin 0
testDoesNotMatchDisabledPlugin 0

TestXmlDynamicPluginFactory

testCreateBadXml 0.002

TestLegacyDynamicPluginFactory

testCreateCorruptJar 0

TestDefaultPluginManager

testRetrievePlugins 0.02
testEnableFailed 10.025
testEnableModuleFailed 0.004
testEnabledDisabledRetrieval 0.008
testDuplicatePluginKeysAreBad 0.006
testLoadOlderDuplicatePlugin 0.016
testLoadNewerDuplicatePlugin 0.039
testLoadNewerDuplicateDynamicPluginPreservesPluginState 0.012
testLoadNewerDuplicateDynamicPluginPreservesModuleState 0.01
testLoadChangedDynamicPluginWithSameVersionNumberReplacesExisting 0.011
testGetPluginsWithPluginMatchingPluginPredicate 0.003
testGetPluginsWithPluginNotMatchingPluginPredicate 0
testGetPluginModulesWithModuleMatchingPredicate 0.003
testGetPluginModulesWithModuleNotMatchingPredicate 0
testGetPluginModuleDescriptorWithModuleMatchingPredicate 0
testGetPluginModuleDescriptorsWithModuleNotMatchingPredicate 0.002
testGetPluginAndModules 0.008
testGetModuleByModuleClassOneFound 0.005
testGetModuleByModuleClassAndDescriptor 0.005
testGetModuleByModuleClassNoneFound 0.006
testGetModuleDescriptorsByType 0.004
testRetrievingDynamicResources 0.027
testGetDynamicPluginClass 0.028
testFindingNewPlugins 0.032
testFindingNewPluginsNotLoadingRestartRequiredDescriptors 0.028
testRemovingPlugins 0.022
testNonRemovablePlugins 0.007
testNonDeletablePlugins 0.032
testComparePluginNewer 0.002
testComparePluginOlder 0.002
testComparePluginEqual 0.001
testComparePluginNoVersion 0
testComparePluginBadPlugin 0
testInvalidationOfDynamicResourceCache 0.034
testValidatePlugin 0.009
testValidatePluginWithNoDynamicLoaders 0
testInvalidationOfDynamicClassCache 0.078
testInstallPlugin 0.03
testInstallPluginTwiceWithSameName 1.278
testInstallPluginTwiceWithDifferentName 1.034
testAddPluginsWithDependencyIssues 60.121
testAddPluginsWithDependencyIssuesNoResolution 60.12
testAddPluginsThatThrowExceptionOnEnabled 0.001
testUninstallPluginClearsState 0.03

TestDefaultPluginArtifactFactory

testCreate 0.565
testCreateWithSpaceInArtifactPath 0.003

TestAbstractModuleDescriptor

testGetResourceDescriptor 0.005
testAssertModuleClassImplements 0.023
testSingletonness 0.05
testGetResourceDescriptorByType 0.021

TestVersionStringComparator

testNonStringsEqual 0
testIntegers 0.005
testOneDot 0.021
testTwoDots 0.057
testMoreDots 0.017
testLetters 0.108
testBetas 0.002
testDates 0.017
testUnintuitiveCases 0.002
testValidVersions 0.001
testInvalidVersions 0.001

TestJarPluginArtifact

testGetResourceAsStream 0.003

TestBundledPluginLoader

testCreateWithUnzip 0.045

TestXmlDescriptorParser

testMissingPluginInfo 0.006

TestAbstractPlugin

testCompareTo 0.001
testCompareToWithNullPluginInformation 0.017
testCompareToWithNullKey 0.001

TestResources

testMultipleResources 0.002
testGetResourceDescriptorsByType 0.002
testGetResourceDescriptor 0.004
testMultipleResourceWithClashingKeysFail 0.002
testParsingNullElementThrowsException 0
testEmptyResources 0

TestModuleDescriptorOfTypePredicate

testMatchesModuleWithModuleDescriptorMatchingType 0.009
testDoesNotMatchModuleWithModuleDescriptorNotMatchingType 0

TestSinglePluginLoader

testAtlassianPlugin 0.01
testSinglePluginLoader 0.013
testDisabledPlugin 0.003
testPluginByUrl 0.012
testPluginsInOrder 0.004
testUnknownPluginModule 0.005
testPluginWithOnlyPermittedModules 0.006
testPluginWithOnlyPermittedModulesAndMissingModuleDescriptor 0.035
testBadPluginKey 0.003
testNonUniqueKeysWithinAPlugin 0.003
testBadResource 0.001

TestDeploymentUnit

testCompareTo 0.001

TestPluginEventManagerImpl

testRegister 0.004
testRegisterWithBroadcastSupertype 0
testRegisterWithFooBroadcastSupertype 0
testRegisterTwice 0
testRegisterWithBadListener 0
testRegisterWithCustomSelector 0
testRegisterWithOverlappingSelectors 0
testRegisterWithCustom 0
testUnregister 0.001
testSuperEvent 0
testRegisterNull 0

TestModuleDescriptorOfClassPredicate

testCannotCreateWithNullModuleDescritptorClassesArray 0.001
testMatchesModuleWithModuleDescriptorClassExactlyMatchingClass 0.001
testDoesNotMatchModuleWithModuleDescriptorClassExtendingButNotExactlyMatchingClass 0
testDoesNotMatchModuleWithModuleDescriptorClassNotMatchingClass 0

TestDirectoryPluginLoader

testAtlassianPlugin 0.123
testSupportsAdditionAndRemoval 0.002
testNoFoundPlugins 0.036
testFoundPlugin 0.069
testRemovePlugin 0.02
testInvalidPluginHandled 0.044
testInstallPluginTwice 1.025
testMixedFactories 0.017
testUnknownPluginArtifact 0.006

TestMemoryPluginStateStore

testStore 0

TestPluginsClassLoader

testFindResourceWhenIndexed 0.075
testFindResourceWhenNotIndexed 0
testFindResourceWhenIndexedAndPluginDisabled 0
testFindClassWhenIndexed 0.001
testFindClassWhenNotIndexed 0
testFindClassWhenIndexedAndPluginDisabled 0.001

TestDefaultModuleDescriptorFactory

testInvalidModuleDescriptorType 0
testModuleDescriptorFactory 0
testModuleDescriptorFactoryOnlyPermittedDescriptors 0

TestDirectoryScanner

testNormalOperation 0.002
testRemove 0.002
testAddAndRemoveJarFromOutsideScanner 0.003
testModifyJar 0.003

TestClassLoaderUtils

testLoadClass 0.001

TestEnabledModulePredicate

testCannotCreateWithNullPluginAccessor 0.001
testMatchesEnabledModule 0.001
testDoesNotMatchDisabledModule 0

TestModuleOfClassPredicate

testCannotCreateWithNullClass 0.023
testMatchesModuleExtendingClass 0.009
testDoesNotMatchModuleNotExtendingClass 0

TestClassPathPluginLoader

testAtlassianPlugin 0.343

TestPluginClassLoader

testPluginClassLoaderFindsInnerJars 0.01
testPluginClassLoaderLoadsResourceFromOuterJarFirst 0.128
testPluginClassLoaderLoadsClassFromOuterJar 0.047
testPluginClassLoaderHandlesDeletedExctractedInnerJars 0.007
testPluginClassLoaderExtractsInnerJarsToSpecifiedDirectory 0.004
testPluginClassLoaderDetectsMissingTempDirectory 0.004
testPluginClassLoaderLoadsResourceFromInnerJarIfNotInOuterJar 0.004
testPluginClassLoaderDoesNotSwallowClassesFromADifferentClassLoader 0.004
testPluginClassLoaderOverridesContainerClassesWithInnerJarClasses 0.011
testPluginClassLoaderDoesNotLockTheJarsPermanently 0.009

TestResourceDescriptor

testBasicResource 0.004
testResourceWithContent 0.002
testResourceWithParameters 0.003
testResourceWithParametersAndContent 0.002
testEquality 0.008
testMultiResourceDescriptor 0.002
testGetResourceLocationForNameForSingleResource 0.002
testEquals 0
testEqualsWithNullNameAndType 0.001
testEqualsWithNullType 0
testHashcode 0.001

TestDelegationClassLoader

testLoadSystemClassWithOutDelegateSet 0.001
testLoadSystemClassWithDelegateSet 0
testCantLoadUnknownClassWithOutDelegateSet 0.001
testCantLoadUnknownClassWithDelegateSet 0
testCantSetNullDelegate 0.001
testCanSetDelegate 0

TestLoaderUtils

testMultipleParameters 0.004

TestPluginUtils

testDoesPluginRequireRestart 0.03

TestStateAware

testStateAwareOnInit 0.051
testStateAwareOnPluginModule 0.001
testStateAwareOnPluginDisable 0.002
testDisabledModuleDescriptorsAreEnabled 0.002

TestModuleCompleteKey

testWorkingKey 0.005
testBadKey 0.001