Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
62 0 0 0 100% 1.278

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.gadgets.publisher.internal.impl 46 0 0 0 100% 0.485
com.atlassian.gadgets.publisher.internal 16 0 0 0 100% 0.793

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

com.atlassian.gadgets.publisher.internal.impl

Class Tests Errors Failures Skipped Success Rate Time
GadgetProcessorImplTest 35 0 0 0 100% 0.312
PublishedGadgetSpecStoreImplTest 11 0 0 0 100% 0.173

com.atlassian.gadgets.publisher.internal

Class Tests Errors Failures Skipped Success Rate Time
GadgetModuleDescriptorTest 5 0 0 0 100% 0.169
PluginGadgetFinderTest 5 0 0 0 100% 0.197
LocaleParserTest 5 0 0 0 100% 0.064
GadgetSpecResourceTest 1 0 0 0 100% 0.363

Test Cases

GadgetModuleDescriptorTest

testGadgetModuleDescriptorCreatesPluginGadgetSpecWithSpecifiedPluginAndLocation 0.151
testInitWithNullPluginThrowsNullPointerException 0.001
testInitWithNullElementThrowsNullPointerException 0
testInitWithMissingKeyThrowsValidationException 0.009
testInitWithMissingLocationThrowsValidationException 0.001

PluginGadgetFinderTest

assertThatPluginsAreScannedAndGadgetsFoundAtStartup 0.168
assertThatPluginEnabledInstallsLocallyHostedGadgets 0.007
assertThatPluginDisabledRemovesLocallyHostedGadgets 0.006
assertThatPluginEnabledWithNullEventModuleDoesNotCallListener 0.007
assertThatPluginDisabledWithNullEventModuleDoesNotCallListener 0.005

LocaleParserTest

nullArgumentThrowsNullPointerException 0.01
emptyArgumentThrowsIllegalArgumentException 0.003
argumentWithLanguageAndCountryParsesLocaleWithLanguageAndCountry 0.001
argumentWithLanguageForAllCountriesParsesLocaleWithLanguageOnly 0
argumentForAllLanguagesAndAllCountriesParsesFallbackLocale 0.001

GadgetProcessorImplTest

assertProcessWillNotTolerateNullInputStreams 0.047
assertProcessWillNotTolerateNullOutputStreams 0.002
assertAtlassianBaseUrlIsSubstitutedCorrectly 0.017
assertNullAtlassianBaseUrlCausesReturnOfOriginalString 0.005
assertEmptyAtlassianBaseUrlCausesReturnOfOriginalString 0.005
assertRequireResourceIsProcessedCorrectly 0.003
assertInvalidRequireResourceIsIgnored 0.001
assertRequireResourceWithBadPluginKeyIsIgnored 0.002
assertEmbeddedRequireResourceIsProcessedCorrectly 0.003
assertEmbeddedInvalidRequireResourceIsIgnored 0.002
assertValidRequireResourceIsReplacedAndInvalidIsNot 0.006
assertRequireResourceUrlWithMissingQuoteIsNotReplaced 0.005
assertIncludeResourcesWithoutParenthesesStillWorks 0.006
assertMisspelledIncludeResourcesIsANoop 0.002
assertIntermixedRequireResourceCallsAreProcessedCorrectlyByInterwovenIncludeResourcesCalls 0.007
assertValidStaticResourceUrlIsProcessedCorrectly 0.006
assertValidStaticResourceUrlInSubdirectoryIsProcessedCorrectly 0.003
assertStaticResourceUrlWithTypoIsIgnored 0.006
assertStaticResourceUrlCallWithOnlyOneArgumentIsIgnored 0.004
assertStaticResourceUrlCallWithSpaceAfterCommaIsProcessedCorrectly 0.003
assertEmbeddedStaticResourceUrlIsProcessedCorrectly 0.005
assertEmbeddedInvalidStaticResourceUrlIsIgnored 0.003
assertValidStaticResourceUrlIsReplacedAndInvalidIsNot 0.003
assertMultipleValidStaticResourceUrlCallsAreReplaced 0.005
assertStaticResourceUrlWithMissingQuoteIsNotReplaced 0.003
assertValidSupportedLocalesIsReplaced 0.042
assertValidSupportedLocalesWithMultipleLocalesIsReplaced 0.008
assertSupportedLocalesWithTypoIsNotReplaced 0.002
assertSupportedLocalesWithNoArgumentsIsNotReplaced 0.004
assertSupportedLocalesWithMissingQuoteIsNotReplaced 0.006
assertMultipleValidSupportedLocalesAreReplaced 0.005
assertMultipleValidPrefixesAreReplaced 0.003
assertPrefixWithUriCharsIsEscaped 0.002
assertThatOAuthWithCallbackIsReplaced 0.004
assertThatOAuthWithoutCallbackIsReplaced 0.003

PublishedGadgetSpecStoreImplTest

assertThatStoreInitiallyContainsNoUris 0.067
assertThatStoreRejectsInvalidGadgetSpec 0.006
assertThatStoreDoesNotContainNonGadgetUri 0.003
assertThatStoreDoesNotContainInvalidGadgetUri 0.006
assertThatStoreDoesNotContainValidGadgetUriFromAnotherServer 0.005
assertThatStoreDoesNotContainExternalGadgetSpecs 0.002
assertThatStoreContainsStoredGadgetUri 0.007
assertThatStoreInitiallyHasNoEntries 0.008
assertThatStoreEntriesContainsStoredGadgetUri 0.046
assertThatWritingAbsentGadgetSpecThrowsPublishedGadgetSpecNotFoundException 0.007
assertThatWritingStoredGadgetSpecEqualsOriginalSpecData 0.006

GadgetSpecResourceTest

verifyThatPluginAndSpecPathAreParsedProperly 0.361