Package es.bsc.dataclay.logic.accountmgr
Class AccountManagerTest
- java.lang.Object
- 
- es.bsc.dataclay.test.AbstractManagerTest
- 
- es.bsc.dataclay.logic.accountmgr.AccountManagerTest
 
 
- 
 public final class AccountManagerTest extends AbstractManagerTest This class tests the functions of the Accountmanager.
- 
- 
Field SummaryFields Modifier and Type Field Description org.mockito.junit.MockitoRulemockitoRule- 
Fields inherited from class es.bsc.dataclay.test.AbstractManagerTestdataSource, dbHandler
 
- 
 - 
Constructor SummaryConstructors Constructor Description AccountManagerTest()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()voidbefore()voidtestExistsAccount()voidtestExistsAccountFails()voidtestGetAccountID()voidtestGetAccountList()voidtestNewAccount()Test method for AccountManager::newAccount(AccountID, Credential, String, AccountRole, Credential)voidtestNewAccountAlreadyExist()voidtestNewAccountWrongAdmin()voidtestNewAccountWrongCredential()voidtestValidateAccount()voidtestValidateAccountAdmin()voidtestValidateAccountNormal()voidtestValidateAccountWrongAdminCredential()voidtestValidateAccountWrongAdminRole()voidtestValidateAccountWrongCredential()voidtestValidateAccountWrongID()voidtestValidateAccountWrongNormalCredential()voidtestValidateAccountWrongNormalRole()
 
- 
- 
- 
Method Detail- 
beforepublic void before() - Overrides:
- beforein class- AbstractManagerTest
 
 - 
afterpublic void after() throws Exception- Overrides:
- afterin class- AbstractManagerTest
- Throws:
- Exception
 
 - 
testNewAccountpublic void testNewAccount() Test method for AccountManager::newAccount(AccountID, Credential, String, AccountRole, Credential)
 - 
testNewAccountWrongAdminpublic void testNewAccountWrongAdmin() 
 - 
testNewAccountAlreadyExistpublic void testNewAccountAlreadyExist() 
 - 
testNewAccountWrongCredentialpublic void testNewAccountWrongCredential() 
 - 
testGetAccountIDpublic void testGetAccountID() 
 - 
testGetAccountListpublic void testGetAccountList() 
 - 
testExistsAccountpublic void testExistsAccount() 
 - 
testExistsAccountFailspublic void testExistsAccountFails() 
 - 
testValidateAccountAdminpublic void testValidateAccountAdmin() 
 - 
testValidateAccountNormalpublic void testValidateAccountNormal() 
 - 
testValidateAccountpublic void testValidateAccount() 
 - 
testValidateAccountWrongAdminRolepublic void testValidateAccountWrongAdminRole() 
 - 
testValidateAccountWrongNormalRolepublic void testValidateAccountWrongNormalRole() 
 - 
testValidateAccountWrongAdminCredentialpublic void testValidateAccountWrongAdminCredential() 
 - 
testValidateAccountWrongNormalCredentialpublic void testValidateAccountWrongNormalCredential() 
 - 
testValidateAccountWrongCredentialpublic void testValidateAccountWrongCredential() 
 - 
testValidateAccountWrongIDpublic void testValidateAccountWrongID() 
 
- 
 
-