Class AbstractApiTest


  • public abstract class AbstractApiTest
    extends MockableTest
    • Field Detail

      • API_TEST_TRANSFORMATION

        public static final java.lang.String API_TEST_TRANSFORMATION
      • API_TEST_TRANSFORMATION_2

        public static final java.lang.String API_TEST_TRANSFORMATION_2
      • API_TEST_TRANSFORMATION_3

        public static final java.lang.String API_TEST_TRANSFORMATION_3
      • API_TEST_UPLOAD_PRESET

        public static final java.lang.String API_TEST_UPLOAD_PRESET
      • API_TEST_UPLOAD_PRESET_2

        public static final java.lang.String API_TEST_UPLOAD_PRESET_2
      • API_TEST_UPLOAD_PRESET_3

        public static final java.lang.String API_TEST_UPLOAD_PRESET_3
      • API_TEST_UPLOAD_PRESET_4

        public static final java.lang.String API_TEST_UPLOAD_PRESET_4
      • API_TAG

        public static final java.lang.String API_TAG
      • DIRECTION_TAG

        public static final java.lang.String DIRECTION_TAG
      • UPLOAD_TAGS

        public static final java.lang.String[] UPLOAD_TAGS
      • EXPLICIT_TRANSFORMATION_NAME

        public static final java.lang.String EXPLICIT_TRANSFORMATION_NAME
      • EXPLICIT_TRANSFORMATION

        public static final com.cloudinary.Transformation EXPLICIT_TRANSFORMATION
      • UPDATE_TRANSFORMATION_NAME

        public static final java.lang.String UPDATE_TRANSFORMATION_NAME
      • UPDATE_TRANSFORMATION

        public static final com.cloudinary.Transformation UPDATE_TRANSFORMATION
      • DELETE_TRANSFORMATION_NAME

        public static final java.lang.String DELETE_TRANSFORMATION_NAME
      • DELETE_TRANSFORMATION

        public static final com.cloudinary.Transformation DELETE_TRANSFORMATION
      • TEST_KEY

        public static final java.lang.String TEST_KEY
      • API_TEST_RESTORE

        public static final java.lang.String API_TEST_RESTORE
      • api

        protected com.cloudinary.Api api
      • currentTest

        public org.junit.rules.TestName currentTest
    • Constructor Detail

      • AbstractApiTest

        public AbstractApiTest()
    • Method Detail

      • setUpClass

        public static void setUpClass()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • tearDownClass

        public static void tearDownClass()
      • setUp

        public void setUp()
      • findByAttr

        public java.util.Map findByAttr​(java.util.List<java.util.Map> elements,
                                        java.lang.String attr,
                                        java.lang.Object value)
      • test01ResourceTypes

        public void test01ResourceTypes()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test03ResourcesCursor

        public void test03ResourcesCursor()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test04ResourcesByType

        public void test04ResourcesByType()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test05ResourcesByPrefix

        public void test05ResourcesByPrefix()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testResourcesListingDirection

        public void testResourcesListingDirection()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testResourcesListingStartAt

        public void testResourcesListingStartAt()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTransformationsWithCursor

        public void testTransformationsWithCursor()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testResourcesByPublicIds

        public void testResourcesByPublicIds()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test06ResourcesTag

        public void test06ResourcesTag()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test07ResourceMetadata

        public void test07ResourceMetadata()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test08DeleteDerived

        public void test08DeleteDerived()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDeleteDerivedByTransformation

        public void testDeleteDerivedByTransformation()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test09DeleteResources

        public void test09DeleteResources()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test09aDeleteResourcesByPrefix

        public void test09aDeleteResourcesByPrefix()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test09aDeleteResourcesByTags

        public void test09aDeleteResourcesByTags()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test10Tags

        public void test10Tags()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test11TagsPrefix

        public void test11TagsPrefix()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test12Transformations

        public void test12Transformations()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test13TransformationMetadata

        public void test13TransformationMetadata()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test14TransformationUpdate

        public void test14TransformationUpdate()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test15TransformationCreate

        public void test15TransformationCreate()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test15aTransformationUnsafeUpdate

        public void test15aTransformationUnsafeUpdate()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test16aTransformationDelete

        public void test16aTransformationDelete()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test17aTransformationDeleteImplicit

        public void test17aTransformationDeleteImplicit()
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testListTransformationByNamed

        public void testListTransformationByNamed()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test20ResourcesContext

        public void test20ResourcesContext()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test18Usage

        public void test18Usage()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRateLimitWithNonEnglishLocale

        public void testRateLimitWithNonEnglishLocale()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test19Ping

        public void test19Ping()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDeleteAllResources

        public void testDeleteAllResources()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testManualModeration

        public void testManualModeration()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testOcrUpdate

        public void testOcrUpdate()
      • testRawConvertUpdate

        public void testRawConvertUpdate()
      • testCategorizationUpdate

        public void testCategorizationUpdate()
      • testDetectionUpdate

        public void testDetectionUpdate()
      • testUpdateCustomCoordinates

        public void testUpdateCustomCoordinates()
                                         throws java.io.IOException,
                                                java.lang.Exception
        Throws:
        java.io.IOException
        java.lang.Exception
      • testUpdateAccessControl

        public void testUpdateAccessControl()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testListUploadPresets

        public void testListUploadPresets()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGetUploadPreset

        public void testGetUploadPreset()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDeleteUploadPreset

        public void testDeleteUploadPreset()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUpdateUploadPreset

        public void testUpdateUploadPreset()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testListByModerationUpdate

        public void testListByModerationUpdate()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFolderApi

        public void testFolderApi()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRestore

        public void testRestore()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUploadMapping

        public void testUploadMapping()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPublishByIds

        public void testPublishByIds()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPublishWithType

        public void testPublishWithType()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPublishByPrefix

        public void testPublishByPrefix()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPublishByTag

        public void testPublishByTag()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUpdateResourcesAccessModeByIds

        public void testUpdateResourcesAccessModeByIds()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUpdateResourcesAccessModeByPrefix

        public void testUpdateResourcesAccessModeByPrefix()
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUpdateResourcesAccessModeByTag

        public void testUpdateResourcesAccessModeByTag()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testQualityAnalysis

        public void testQualityAnalysis()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDeleteFolder

        public void testDeleteFolder()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCinemagraphAnalysisResource

        public void testCinemagraphAnalysisResource()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception