public class AddonsImplTest extends AddonsImplTestBase<Addon>
ADDON_LINKS, ADDON_REF_REP, ADDON_REP, ADDON_SUMMARY_REP, ADDON_VERSION_REP, ADDON_VERSIONS_LINKS, ADDON_VERSIONS_REP, ADDONS_LINKS, ADDONS_REP, ADDONS_REP_WITH_NEXT, ADDONS_REP_WITH_PREV, BANNERS_REP, FAKE_ADDON_BY_KEY_PATH, FAKE_ADDON_VERSION_BY_BUILD_PATH, FAKE_ADDON_VERSION_BY_NAME_PATH, FAKE_ADDON_VERSIONS_PATH, FAKE_BANNERS_PATH, FAKE_LATEST_VERSION_PATH, FAKE_PRICING_TEMPLATE, FAKE_RECOMMENDATIONS_PATH, FAKE_TOKENS_PATH, RECOMMENDATIONS_REP, TOKENS_LINKS, TOKENS_REPtester| Constructor and Description |
|---|
AddonsImplTest() |
addonByKeyUri, addonsApi, addonsApiZeroLengthQuery, addonVersionZeroLengthQuery, bannersApi, latestVersionUri, recommendationsUri, setupAddonBannersResource, setupAddonBannersResource, setupAddonByKeyResource, setupAddonsResource, setupAddonsResource, setupClaimTokenResource, setupRecommendationsResource, setupVersionResource, tokensUri, tokenUri, versionByBuildUri, versionByNameUricreatePostsToCollectionResource, createReturnsNewEntity, createThrowsExceptionIfServerReturnsError, setUp, updateQueriesNewEntityWithNoCaching, updateReturnsNewEntity, updateSendsPatchRequest, updateThrowsExceptionIfFinalQueryOfUpdatedEntityFails, updateThrowsExceptionIfOriginalEntityIsNotFromServer, updateThrowsExceptionIfServerReturnsErrorpublic void addonsAccessorQueriesRootResource()
throws Exception
Exceptionpublic void addonsAccessorThrowsExceptionIfRootResourceNotAvailable()
throws Exception
Exceptionpublic void addonsAccessorReturnsNonNullObject()
throws Exception
Exceptionpublic void getByKeyUsesAddonsResource()
throws Exception
Exceptionpublic void getByKeyUsesAddonByKeyResource()
throws Exception
Exceptionpublic void getByKeyPassesAppKeyInQueryString()
throws Exception
Exceptionpublic void getByKeyPassesAccessTokenInQueryString()
throws Exception
Exceptionpublic void findReturnsPageWithCorrectSize()
throws Exception
Exceptionpublic void findReturnsPageWithCorrectTotalSize()
throws Exception
Exceptionpublic void findReturnsPageWithReference()
throws Exception
Exceptionpublic void findReturnsPageWithNoNextReferenceIfNoNextLink()
throws Exception
Exceptionpublic void findReturnsPageWithNextReferenceIfNextLink()
throws Exception
Exceptionpublic void findReturnsPageWithNextReferenceUsingSizeAsLimitIfLimitOmitted()
throws Exception
Exceptionpublic void findReturnsPageWithNoPrevReferenceIfNoPrevLink()
throws Exception
Exceptionpublic void findReturnsPageWithPrevReferenceIfPrevLink()
throws Exception
Exceptionpublic void findPassesOffsetInQueryString()
throws Exception
Exceptionpublic void findPassesLimitInQueryString()
throws Exception
Exceptionpublic void findPassesAppKeyInQueryString()
throws Exception
Exceptionpublic void findPassesAppBuildNumberInQueryString()
throws Exception
Exceptionpublic void findPassesCategoriesInQueryString()
throws Exception
Exceptionpublic void findPassesCostInQueryString()
throws Exception
Exceptionpublic void findPassesViewFilterInQueryString()
throws Exception
Exceptionpublic void findPassesVersionFlagInQueryString()
throws Exception
Exceptionpublic void findPassesForThisUserFlagInQueryString()
throws Exception
Exceptionpublic void findPassesHostingInQueryString()
throws Exception
Exceptionpublic void findPassesIncludeHiddenInQueryString()
throws Exception
Exceptionpublic void findPassesIncludePrivateFlagInQueryString()
throws Exception
Exceptionpublic void findBannersUsesAddonsResource()
throws Exception
Exceptionpublic void findBannersReturnsPageWithCorrectSize()
throws Exception
Exceptionpublic void findBannersReturnsPageWithCorrectTotalSize()
throws Exception
Exceptionpublic void findRecommendationsReturnsAddons()
throws Exception
Exceptionpublic void findRecommendationsReturnsPageWithCorrectTotalSize()
throws Exception
Exceptionpublic void findRecommendationsPassesQueryParameters()
throws Exception
Exceptionpublic void claimAccessTokenReturnsTrueIfPostIsSuccessful()
throws Exception
Exceptionpublic void claimAccessTokenReturnsFalseIfPostReturns400()
throws Exception
Exceptionpublic void claimAccessTokenReturnsFalseIfPostReturns403()
throws Exception
Exceptionpublic void claimAccessTokenReturnsFalseIfPostReturns404()
throws Exception
Exceptionpublic void claimAccessTokenThrowsExceptionIfPostReturns500()
throws Exception
Exceptionprotected URI getCollectionUri()
getCollectionUri in class ApiImplTestBaseWithCreateAndUpdate<Addon>protected Addon makeEntityToCreate()
makeEntityToCreate in class ApiImplTestBaseWithCreateAndUpdate<Addon>protected Addon makeEntityFromServer()
makeEntityFromServer in class ApiImplTestBaseWithCreateAndUpdate<Addon>protected Addon makeEntityWithUpdates(Addon from)
makeEntityWithUpdates in class ApiImplTestBaseWithCreateAndUpdate<Addon>protected Addon createEntity(Addon entity) throws MpacException
createEntity in class ApiImplTestBaseWithCreateAndUpdate<Addon>MpacExceptionprotected Addon updateEntity(Addon original, Addon updated) throws MpacException
updateEntity in class ApiImplTestBaseWithCreateAndUpdate<Addon>MpacExceptionprotected URI transformEntityUriAfterCreate(URI uri)
transformEntityUriAfterCreate in class ApiImplTestBaseWithCreateAndUpdate<Addon>Copyright © 2016 Atlassian. All rights reserved.