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 Summary
Fields Modifier and Type Field Description org.mockito.junit.MockitoRulemockitoRule-
Fields inherited from class es.bsc.dataclay.test.AbstractManagerTest
dataSource, dbHandler
-
-
Constructor Summary
Constructors Constructor Description AccountManagerTest()
-
Method Summary
All 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
-
before
public void before()
- Overrides:
beforein classAbstractManagerTest
-
after
public void after() throws Exception- Overrides:
afterin classAbstractManagerTest- Throws:
Exception
-
testNewAccount
public void testNewAccount()
Test method for AccountManager::newAccount(AccountID, Credential, String, AccountRole, Credential)
-
testNewAccountWrongAdmin
public void testNewAccountWrongAdmin()
-
testNewAccountAlreadyExist
public void testNewAccountAlreadyExist()
-
testNewAccountWrongCredential
public void testNewAccountWrongCredential()
-
testGetAccountID
public void testGetAccountID()
-
testGetAccountList
public void testGetAccountList()
-
testExistsAccount
public void testExistsAccount()
-
testExistsAccountFails
public void testExistsAccountFails()
-
testValidateAccountAdmin
public void testValidateAccountAdmin()
-
testValidateAccountNormal
public void testValidateAccountNormal()
-
testValidateAccount
public void testValidateAccount()
-
testValidateAccountWrongAdminRole
public void testValidateAccountWrongAdminRole()
-
testValidateAccountWrongNormalRole
public void testValidateAccountWrongNormalRole()
-
testValidateAccountWrongAdminCredential
public void testValidateAccountWrongAdminCredential()
-
testValidateAccountWrongNormalCredential
public void testValidateAccountWrongNormalCredential()
-
testValidateAccountWrongCredential
public void testValidateAccountWrongCredential()
-
testValidateAccountWrongID
public void testValidateAccountWrongID()
-
-