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.MockitoRule
mockitoRule
-
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 void
after()
void
before()
void
testExistsAccount()
void
testExistsAccountFails()
void
testGetAccountID()
void
testGetAccountList()
void
testNewAccount()
Test method for AccountManager::newAccount(AccountID, Credential, String, AccountRole, Credential)void
testNewAccountAlreadyExist()
void
testNewAccountWrongAdmin()
void
testNewAccountWrongCredential()
void
testValidateAccount()
void
testValidateAccountAdmin()
void
testValidateAccountNormal()
void
testValidateAccountWrongAdminCredential()
void
testValidateAccountWrongAdminRole()
void
testValidateAccountWrongCredential()
void
testValidateAccountWrongID()
void
testValidateAccountWrongNormalCredential()
void
testValidateAccountWrongNormalRole()
-
-
-
Method Detail
-
before
public void before()
- Overrides:
before
in classAbstractManagerTest
-
after
public void after() throws Exception
- Overrides:
after
in 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()
-
-