Package com.cloudinary.test
Class AbstractAccountApiTest
java.lang.Object
com.cloudinary.test.MockableTest
com.cloudinary.test.AbstractAccountApiTest
public abstract class AbstractAccountApiTest extends MockableTest
-
Field Summary
Fields Modifier and Type Field Description protected com.cloudinary.provisioning.Accountaccountorg.junit.rules.TestNamecurrentTestorg.junit.rules.ExpectedExceptionexpectedExceptionFields inherited from class com.cloudinary.test.MockableTest
cloudinary, REMOTE_TEST_IMAGE, SDK_TEST_TAG, SRC_TEST_IMAGE, SRC_TEST_RAW, SRC_TEST_VIDEO, SUFFIX -
Constructor Summary
Constructors Constructor Description AbstractAccountApiTest() -
Method Summary
Modifier and Type Method Description voidsetUp()static voidsetUpClass()static voidtearDownClass()voidtestAddUserToUserGroup()voidtestCreateSubAccount()voidtestCreateUser()voidtestCreateUserDisabled()voidtestCreateUserEnabled()voidtestCreateUserGroup()voidtestCreateUserWithOptions()voidtestDeleteSubAccount()voidtestDeleteUser()voidtestDeleteUserGroup()voidtestGetPendingUsers()voidtestGetSubAccount()voidtestGetSubAccounts()voidtestGetUser()voidtestGetUsers()voidtestGetUsersByPrefix()voidtestGetUsersBySubAccountIds()voidtestGetUsersThrowsWhenSubAccountIdDoesntExist()voidtestListUserGroup()voidtestListUserGroups()voidtestListUsersInGroup()voidtestPassingCredentialsThroughOptions()voidtestRemoveUserFromUserGroup()voidtestUpdateSubAccount()voidtestUpdateUser()voidtestUpdateUserDisabled()voidtestUpdateUserEnabled()voidtestUpdateUserGroup()Methods inherited from class com.cloudinary.test.MockableTest
getHttpMethod, getParam, getURL, preloadResource
-
Field Details
-
account
protected com.cloudinary.provisioning.Account account -
currentTest
public org.junit.rules.TestName currentTest -
expectedException
public org.junit.rules.ExpectedException expectedException
-
-
Constructor Details
-
AbstractAccountApiTest
public AbstractAccountApiTest()
-
-
Method Details
-
setUpClass
public static void setUpClass() -
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDownClass
public static void tearDownClass() -
testPassingCredentialsThroughOptions
public void testPassingCredentialsThroughOptions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetSubAccount
public void testGetSubAccount() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetSubAccounts
public void testGetSubAccounts() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateSubAccount
public void testCreateSubAccount() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateSubAccount
public void testUpdateSubAccount() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDeleteSubAccount
public void testDeleteSubAccount() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetUser
public void testGetUser() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetUsers
public void testGetUsers() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetPendingUsers
public void testGetPendingUsers() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetUsersByPrefix
public void testGetUsersByPrefix() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetUsersBySubAccountIds
public void testGetUsersBySubAccountIds() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetUsersThrowsWhenSubAccountIdDoesntExist
public void testGetUsersThrowsWhenSubAccountIdDoesntExist() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateUser
public void testCreateUser() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateUserWithOptions
public void testCreateUserWithOptions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateUserEnabled
public void testCreateUserEnabled() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateUserDisabled
public void testCreateUserDisabled() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateUser
public void testUpdateUser() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateUserEnabled
public void testUpdateUserEnabled() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateUserDisabled
public void testUpdateUserDisabled() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDeleteUser
public void testDeleteUser() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateUserGroup
public void testCreateUserGroup() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUpdateUserGroup
public void testUpdateUserGroup() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDeleteUserGroup
public void testDeleteUserGroup() throws java.lang.Exception- Throws:
java.lang.Exception
-
testAddUserToUserGroup
public void testAddUserToUserGroup() throws java.lang.Exception- Throws:
java.lang.Exception
-
testRemoveUserFromUserGroup
public void testRemoveUserFromUserGroup() throws java.lang.Exception- Throws:
java.lang.Exception
-
testListUserGroups
public void testListUserGroups() throws java.lang.Exception- Throws:
java.lang.Exception
-
testListUserGroup
public void testListUserGroup() throws java.lang.Exception- Throws:
java.lang.Exception
-
testListUsersInGroup
public void testListUsersInGroup() throws java.lang.Exception- Throws:
java.lang.Exception
-