Surefire Report

Summary


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

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

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.324
PublishedGadgetSpecStoreImplTest 11 0 0 0 100% 0.132

com.atlassian.gadgets.publisher.internal

Class Tests Errors Failures Skipped Success Rate Time
GadgetModuleDescriptorTest 5 0 0 0 100% 0.523
PluginGadgetFinderTest 5 0 0 0 100% 0.386
LocaleParserTest 5 0 0 0 100% 0.2
GadgetSpecResourceTest 1 0 0 0 100% 0.575

Test Cases

GadgetModuleDescriptorTest

testGadgetModuleDescriptorCreatesPluginGadgetSpecWithSpecifiedPluginAndLocation 0.51
testInitWithNullPluginThrowsNullPointerException 0.003
testInitWithNullElementThrowsNullPointerException 0.001
testInitWithMissingKeyThrowsValidationException 0.006
testInitWithMissingLocationThrowsValidationException 0.001

PluginGadgetFinderTest

assertThatPluginsAreScannedAndGadgetsFoundAtStartup 0.357
assertThatPluginEnabledInstallsLocallyHostedGadgets 0.004
assertThatPluginDisabledRemovesLocallyHostedGadgets 0.006
assertThatPluginEnabledWithNullEventModuleDoesNotCallListener 0.003
assertThatPluginDisabledWithNullEventModuleDoesNotCallListener 0.003

LocaleParserTest

nullArgumentThrowsNullPointerException 0.021
emptyArgumentThrowsIllegalArgumentException 0.001
argumentWithLanguageAndCountryParsesLocaleWithLanguageAndCountry 0.001
argumentWithLanguageForAllCountriesParsesLocaleWithLanguageOnly 0.001
argumentForAllLanguagesAndAllCountriesParsesFallbackLocale 0

GadgetProcessorImplTest

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

PublishedGadgetSpecStoreImplTest

assertThatStoreInitiallyContainsNoUris 0.067
assertThatStoreRejectsInvalidGadgetSpec 0.003
assertThatStoreDoesNotContainNonGadgetUri 0
assertThatStoreDoesNotContainInvalidGadgetUri 0.003
assertThatStoreDoesNotContainValidGadgetUriFromAnotherServer 0.003
assertThatStoreDoesNotContainExternalGadgetSpecs 0.003
assertThatStoreContainsStoredGadgetUri 0.002
assertThatStoreInitiallyHasNoEntries 0.006
assertThatStoreEntriesContainsStoredGadgetUri 0.007
assertThatWritingAbsentGadgetSpecThrowsPublishedGadgetSpecNotFoundException 0.002
assertThatWritingStoredGadgetSpecEqualsOriginalSpecData 0.019

GadgetSpecResourceTest

verifyThatPluginAndSpecPathAreParsedProperly 0.574