Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
20 0 0 0 100% 0.39

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.util 20 0 0 0 100% 0.39

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

com.atlassian.gadgets.util

Class Tests Errors Failures Skipped Success Rate Time
GadgetSpecUrlBuilderTest 14 0 0 0 100% 0.325
UriTemplateTest 6 0 0 0 100% 0.065

Test Cases

GadgetSpecUrlBuilderTest

testBuildGadgetSpecUrlFromPluginGadgetSpecKeyOnlyEncodesComponents 0.273
testBuildGadgetSpecUrlFromPluginKeyAndLocationOnlyEncodesComponents 0.002
testParseGadgetSpecUrlParsesValidGadgetUrl 0.007
testParseGadgetSpecUrlFromAnotherServerThrowsInvalidGadgetSpecUriException 0.003
testParseGadgetSpecUrlMissingPluginKeyAndResourceLocationThrowsInvalidGadgetSpecUriException 0.001
testParseGadgetSpecUrlWithBlankPluginKeyThrowsInvalidGadgetSpecUriException 0.001
testParseGadgetSpecUrlMissingPluginKeyThrowsInvalidGadgetSpecUriException 0.001
testParseGadgetSpecUrlWithBlankResourceLocationThrowsInvalidGadgetSpecUriException 0.003
testParseGadgetSpecUrlMissingResourceLocationThrowsInvalidGadgetSpecUriException 0.001
testConstructGadgetSpecUrlBuilderWithNullApplicationPropertiesThrowsNullPointerException 0.003
testBuildGadgetSpecUrlWithNullPluginGadgetSpecKeyThrowsNullPointerException 0
testBuildGadgetSpecUrlWithNullPluginKeyThrowsNullPointerException 0.001
testBuildGadgetSpecUrlWithNullLocationThrowsNullPointerException 0.001
testParseGadgetSpecUrlWithNullGadgetSpecUrlThrowsNullPointerException 0.001

UriTemplateTest

matchesSimpleUri 0.007
doesNotMatchNonMatchingUri 0.001
matchesUriWithVariables 0.001
matchesUriWithMultipleVariables 0.001
extractsSingleVariable 0.002
extractsMultipleVariables 0.001