|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
nesstar.test.NesstarTestCase
nesstar.api.acu.UserTestBase
public class UserTestBase
A Base Test class for User.java Automatically generated from ARGO/UML
| Field Summary | |
|---|---|
static UserHome |
__home
|
| Constructor Summary | |
|---|---|
UserTestBase(String testName)
Constructor for the UserTestBase object |
|
| Method Summary | |
|---|---|
static junit.framework.Test |
getAssociationTest()
|
static junit.framework.Test |
getAttributesTest()
|
static UserHome |
getHome()
|
static junit.framework.Test |
getMethodsTest()
|
static junit.framework.Test |
getProperiesTest()
|
static void |
main(String[] args)
The main program for the UserTestBase class |
static junit.framework.Test |
suite()
Return the suite of all tests of this class |
void |
testAssociationAgreements()
A Test of the attribute agreements as collection of Agreement |
void |
testAssociationProjects()
A Test of the attribute projects as collection of Project |
void |
testAssociationPurposes()
A Test of the attribute purposes as collection of Purpose |
void |
testAssociationRoles()
A Test of the attribute roles as collection of Role |
void |
testAttributeComment()
A test on Comment |
void |
testAttributeCreationDate()
A test on CreationDate |
void |
testAttributeLabel()
A test on Label |
void |
testAttributeModificationDate()
A Test of the attribute modificationDate |
void |
testHomeOperationCreate()
A Test of the Home operation create(String comment,String id,String password,String roleid,String purposeid,String label) |
void |
testHomeOperationDelete()
A Test of the Home operation delete(String id) |
void |
testHomeOperationFindAll()
A test on the home operation findAll(String id) |
void |
testHomeOperationFindByKey()
A test on the home operation findByKey(String id) |
void |
testHomeOperationGetCurrentUser()
A Test of the Home operation getCurrentUser() |
void |
testHomeOperationUpdate()
A Test of the Home operation update(String comment,String id,String password,String purposeid,String roleid,String label) |
void |
testOperationAddAgreement()
A Test of the operation AddAgreement(String agreementID) |
void |
testOperationAddProject()
A Test of the operation AddProject(String projectID) |
void |
testOperationAddPurpose()
A Test of the operation AddPurpose(String purposeID) |
void |
testOperationAddRole()
A Test of the operation AddRole(String roleID) |
void |
testOperationChangePassword()
A Test of the operation ChangePassword(String password) |
void |
testOperationDeleteProject()
A Test of the operation DeleteProject(String roleID) |
void |
testOperationDeletePurpose()
A Test of the operation DeletePurpose(String purposeID) |
void |
testOperationDeleteRole()
A Test of the operation DeleteRole(String roleID) |
void |
testOperationRemove()
A Test of the operation Remove() |
void |
testOperationSetProject()
A Test of the operation SetProject(String projectID) |
void |
testOperationSetRole()
A Test of the operation SetRole(String purposeID) |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, getName, run, run, runBare, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static UserHome __home
| Constructor Detail |
|---|
public UserTestBase(String testName)
testName - | Method Detail |
|---|
public static UserHome getHome()
throws Exception
Exception
public static junit.framework.Test getProperiesTest()
throws Exception
Exception
public static junit.framework.Test getAttributesTest()
throws Exception
Exception
public static junit.framework.Test getAssociationTest()
throws Exception
Exception
public static junit.framework.Test getMethodsTest()
throws Exception
Exceptionpublic static void main(String[] args)
args - The command line argumentspublic static junit.framework.Test suite()
public void testAttributeModificationDate()
throws Exception
Represents the date when the user was created or their details modified
Exception
public void testAttributeComment()
throws Exception
Exception
public void testAttributeLabel()
throws Exception
Exception
public void testAttributeCreationDate()
throws Exception
Exception
public void testHomeOperationFindByKey()
throws Exception
Exception
public void testHomeOperationFindAll()
throws Exception
Exception
public void testOperationAddAgreement()
throws Exception
add an agreement to the list of agreements accepted by the user.
Exception
public void testOperationAddRole()
throws Exception
add a new role to the user.
Access to this operation is granted ONLY to administrators
Exception
public void testOperationAddProject()
throws Exception
Add a new project to the list of project subscribed by the user.
Access to this operation is granted ONLY to administrators
Exception
public void testOperationChangePassword()
throws Exception
Change the user's password
Access to this operation is granted ONLY to administrators or to the user whose password is being changed
Exception
public void testOperationSetProject()
throws Exception
Select a project from the list of available projects to be used in the current session or current transaction
Exception
public void testOperationSetRole()
throws Exception
it is used by the ACU challenge to select the purpose for the session
Name depends from old implementation of the Access Control Unit.
Exception
public void testHomeOperationCreate()
throws Exception
Exception
public void testHomeOperationUpdate()
throws Exception
Exception
public void testHomeOperationDelete()
throws Exception
Exception
public void testOperationDeleteRole()
throws Exception
Delete a Role from the list of user's roles
Access to this operation is granted ONLY to administrators
Exception
public void testOperationDeletePurpose()
throws Exception
Delete a Role from the list of user's roles
Access to this operation is granted ONLY to administrators
Exception
public void testOperationAddPurpose()
throws Exception
add a new purpose to the list of purpose assigned to the user
Access to this operation is granted ONLY to administrators
Exception
public void testOperationDeleteProject()
throws Exception
Delete a Project from the list of user's projects
Access to this operation is granted ONLY to administrators
Exception
public void testOperationRemove()
throws Exception
delete the user and all his/her soft properties
Access to this operation is granted ONLY to administrators.
Exception
public void testHomeOperationGetCurrentUser()
throws Exception
retrieves the user logged in the current session
Exception
public void testAssociationAgreements()
throws Exception
Exception
public void testAssociationRoles()
throws Exception
Exception
public void testAssociationProjects()
throws Exception
Exception
public void testAssociationPurposes()
throws Exception
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||