Surefire Report

Summary


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

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

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.364
PublishedGadgetSpecStoreImplTest 11 0 0 0 100% 0.13

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.177
LocaleParserTest 5 0 0 0 100% 0.044
GadgetSpecResourceTest 1 0 0 0 100% 0.5

Test Cases

GadgetModuleDescriptorTest

testGadgetModuleDescriptorCreatesPluginGadgetSpecWithSpecifiedPluginAndLocation 0.143
testInitWithNullPluginThrowsNullPointerException 0.001
testInitWithNullElementThrowsNullPointerException 0.002
testInitWithMissingKeyThrowsValidationException 0.008
testInitWithMissingLocationThrowsValidationException 0

PluginGadgetFinderTest

assertThatPluginsAreScannedAndGadgetsFoundAtStartup 0.15
assertThatPluginEnabledInstallsLocallyHostedGadgets 0.009
assertThatPluginDisabledRemovesLocallyHostedGadgets 0.004
assertThatPluginEnabledWithNullEventModuleDoesNotCallListener 0.003
assertThatPluginDisabledWithNullEventModuleDoesNotCallListener 0.002

LocaleParserTest

nullArgumentThrowsNullPointerException 0.009
emptyArgumentThrowsIllegalArgumentException 0.002
argumentWithLanguageAndCountryParsesLocaleWithLanguageAndCountry 0
argumentWithLanguageForAllCountriesParsesLocaleWithLanguageOnly 0
argumentForAllLanguagesAndAllCountriesParsesFallbackLocale 0.001

GadgetProcessorImplTest

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

PublishedGadgetSpecStoreImplTest

assertThatStoreInitiallyContainsNoUris 0.045
assertThatStoreRejectsInvalidGadgetSpec 0.004
assertThatStoreDoesNotContainNonGadgetUri 0.004
assertThatStoreDoesNotContainInvalidGadgetUri 0
assertThatStoreDoesNotContainValidGadgetUriFromAnotherServer 0.005
assertThatStoreDoesNotContainExternalGadgetSpecs 0.002
assertThatStoreContainsStoredGadgetUri 0.025
assertThatStoreInitiallyHasNoEntries 0.009
assertThatStoreEntriesContainsStoredGadgetUri 0.01
assertThatWritingAbsentGadgetSpecThrowsPublishedGadgetSpecNotFoundException 0.003
assertThatWritingStoredGadgetSpecEqualsOriginalSpecData 0.005

GadgetSpecResourceTest

verifyThatPluginAndSpecPathAreParsedProperly 0.499