Class AdminApiTestHelper


  • public class AdminApiTestHelper
    extends Object
    A collection of helper methods to aid Admin REST API related tests
    • Constructor Detail

      • AdminApiTestHelper

        public AdminApiTestHelper()
    • Method Detail

      • verifyApplicationThrottlePolicyDTO

        public void verifyApplicationThrottlePolicyDTO​(ApplicationThrottlePolicyDTO expectedPolicy,
                                                       ApplicationThrottlePolicyDTO actualPolicy)
        Verify whether the field values of the application throttling policy contains the expected values.
        Parameters:
        expectedPolicy - Expected policy which contains the expected field values.
        actualPolicy - Policy object of which the field values should be verified.
      • verifySubscriptionThrottlePolicyDTO

        public void verifySubscriptionThrottlePolicyDTO​(SubscriptionThrottlePolicyDTO expectedPolicy,
                                                        SubscriptionThrottlePolicyDTO actualPolicy)
        Verify whether the field values of the subscription throttling policy contains the expected values.
        Parameters:
        expectedPolicy - Expected policy which contains the expected field values.
        actualPolicy - Policy object of which the field values should be verified.
      • verifyCustomThrottlePolicyDTO

        public void verifyCustomThrottlePolicyDTO​(CustomRuleDTO expectedPolicy,
                                                  CustomRuleDTO actualPolicy)
        Verify whether the field values of the custom throttling policy contains the expected values.
        Parameters:
        expectedPolicy - Expected policy which contains the expected field values.
        actualPolicy - Policy object of which the field values should be verified.
      • verifyAdvancedThrottlePolicyDTO

        public void verifyAdvancedThrottlePolicyDTO​(AdvancedThrottlePolicyDTO expectedPolicy,
                                                    AdvancedThrottlePolicyDTO actualPolicy)
        Verify whether the field values of the advanced throttling policy contains the expected values.
        Parameters:
        expectedPolicy - Expected policy which contains the expected field values.
        actualPolicy - Policy object of which the field values should be verified.
      • verifyLabelDTO

        public void verifyLabelDTO​(LabelDTO expectedLabel,
                                   LabelDTO actualLabel)
        Verify whether the field values of the label DTO contains the expected values.
        Parameters:
        expectedLabel - Expected label which contains the expected field values.
        actualLabel - Label object of which the field values should be verified.
      • verifyEnvironmentDTO

        public void verifyEnvironmentDTO​(EnvironmentDTO expectedEnv,
                                         EnvironmentDTO actualEnv)
        Verify whether the field values of the environment DTO contains the expected values.
        Parameters:
        expectedEnv - Expected environment which contains the expected field values.
        actualEnv - Environment object of which the field values should be verified.
      • verifyVhostDTO

        public void verifyVhostDTO​(VHostDTO expectedVhost,
                                   VHostDTO actualVhost)
        Verify whether the field values of the vhost DTO contains the expected values.
        Parameters:
        expectedVhost - Expected vhost which contains the expected field values.
        actualVhost - Vhost object of which the field values should be verified.
      • verifyApiCategoryDTO

        public void verifyApiCategoryDTO​(APICategoryDTO expectedApiCategory,
                                         APICategoryDTO actualApiCategory)
        Verify whether the field values of the api category DTO contains the expected values.
        Parameters:
        expectedApiCategory - Expected api category which contains the expected field values.
        actualApiCategory - Api category object of which the field values should be verified.
      • verifyKeyManagerDTO

        public void verifyKeyManagerDTO​(KeyManagerDTO expectedKeyManager,
                                        KeyManagerDTO actualKeyManager)
        Verify whether the field values of the key manager DTO contains the expected values.
        Parameters:
        expectedKeyManager - Expected key manager which contains the expected field values.
        actualKeyManager - Key manager object of which the field values should be verified.
      • verifyKeyManagerAdditionalProperties

        public void verifyKeyManagerAdditionalProperties​(Object expectedAdditionalProperties,
                                                         Object actualAdditionalProperties)
        Verify whether the additional properties values of the key manager DTO contains the expected values.
        Parameters:
        expectedAdditionalProperties - Expected key manager which contains the expected field values.
        actualAdditionalProperties - Key manager object of which the field values should be verified.
      • verifyRoleAliasListDTO

        public void verifyRoleAliasListDTO​(RoleAliasListDTO expectedRoleAliasListDTO,
                                           RoleAliasListDTO actualRoleAliasListDTO)
        Verify whether the field values of the role alias list DTO contains the expected values.
        Parameters:
        expectedRoleAliasListDTO - Expected role alias list which contains the expected field values.
        actualRoleAliasListDTO - Role alias list object of which the field values should be verified.