Surefire Report

Summary


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

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.4
com.atlassian.gadgets.publisher.internal 16 0 0 0 100% 0.706

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.291
PublishedGadgetSpecStoreImplTest 11 0 0 0 100% 0.109

com.atlassian.gadgets.publisher.internal

Class Tests Errors Failures Skipped Success Rate Time
GadgetModuleDescriptorTest 5 0 0 0 100% 0.161
PluginGadgetFinderTest 5 0 0 0 100% 0.135
LocaleParserTest 5 0 0 0 100% 0.061
GadgetSpecResourceTest 1 0 0 0 100% 0.349

Test Cases

GadgetModuleDescriptorTest

testGadgetModuleDescriptorCreatesPluginGadgetSpecWithSpecifiedPluginAndLocation 0.145
testInitWithNullPluginThrowsNullPointerException 0.001
testInitWithNullElementThrowsNullPointerException 0.001
testInitWithMissingKeyThrowsValidationException 0.005
testInitWithMissingLocationThrowsValidationException 0.001

PluginGadgetFinderTest

assertThatPluginsAreScannedAndGadgetsFoundAtStartup 0.118
assertThatPluginEnabledInstallsLocallyHostedGadgets 0.007
assertThatPluginDisabledRemovesLocallyHostedGadgets 0.002
assertThatPluginEnabledWithNullEventModuleDoesNotCallListener 0.002
assertThatPluginDisabledWithNullEventModuleDoesNotCallListener 0.002

LocaleParserTest

nullArgumentThrowsNullPointerException 0.01
emptyArgumentThrowsIllegalArgumentException 0.001
argumentWithLanguageAndCountryParsesLocaleWithLanguageAndCountry 0.001
argumentWithLanguageForAllCountriesParsesLocaleWithLanguageOnly 0
argumentForAllLanguagesAndAllCountriesParsesFallbackLocale 0

GadgetProcessorImplTest

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

PublishedGadgetSpecStoreImplTest

assertThatStoreInitiallyContainsNoUris 0.044
assertThatStoreRejectsInvalidGadgetSpec 0.004
assertThatStoreDoesNotContainNonGadgetUri 0.003
assertThatStoreDoesNotContainInvalidGadgetUri 0.003
assertThatStoreDoesNotContainValidGadgetUriFromAnotherServer 0.004
assertThatStoreDoesNotContainExternalGadgetSpecs 0.003
assertThatStoreContainsStoredGadgetUri 0.003
assertThatStoreInitiallyHasNoEntries 0.006
assertThatStoreEntriesContainsStoredGadgetUri 0.004
assertThatWritingAbsentGadgetSpecThrowsPublishedGadgetSpecNotFoundException 0.004
assertThatWritingStoredGadgetSpecEqualsOriginalSpecData 0.003

GadgetSpecResourceTest

verifyThatPluginAndSpecPathAreParsedProperly 0.347