nesstar.api.acu
Class UserTestBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by nesstar.test.NesstarTestCase
              extended by nesstar.api.acu.UserTestBase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
UserTest

public class UserTestBase
extends NesstarTestCase

A Base Test class for User.java Automatically generated from ARGO/UML


Field Summary
static UserHome __home
           
 
Fields inherited from class nesstar.test.NesstarTestCase
ALL, CATALOG_HOME, CUBE_CUBE, DATAFILE_2568_F1, DATAFILE_4176_F1, DATAFILE_4213_F1, DATAFILE_44871_F1, DATAFILE_Cube_C1, DATAFILE_Mergetest_F2, DATAFILE_UnpopulatedElementsTest_F1, emWindow, HC_VAR_HOME, ID_2568, ID_2981, ID_3690, ID_4176, ID_4213, ID_4396, ID_44871, ID_4638, ID_CAMEROON, ID_CIRCULATORY, ID_CUBE, ID_HIERARCHY, ID_LANDET, ID_MERGE, ID_NOGROUPS, ID_NSD50, ID_PUBLISH, ID_UPElements, LICENSE, localIP, NESSTAR2_SERVER_URL, NESSTAR2_URL, NONE, ROOT_CATALOG, SECTION_MERGE_VG10, SECTION_MERGE_VG7, SECTION_MERGE_VG8, SERVER, SOME, SPSS_FORMAT, STAT_ENGINE, STATEMENT_HOME, STATEMENT1, STUDY_2568, STUDY_2981, STUDY_4176, STUDY_4213, STUDY_44871, STUDY_CAMEROON, STUDY_CIRCULATORY, STUDY_CUBE, STUDY_HIERARCHY, STUDY_HOME, STUDY_LANDET, STUDY_MERGE, STUDY_NOGROUPS, STUDY_NSD50, STUDY_UPElements, STUDY2_2568, STUDY2_4638, STUDY2_UPElements, TEST_PROTOCOL, VAR_HOME, VARIABLE_2568_V1, VARIABLE_2568_V13, VARIABLE_2568_V16, VARIABLE_2568_V17, VARIABLE_2568_V18, VARIABLE_2568_V3, VARIABLE_2568_V354, VARIABLE_2568_V77, VARIABLE_44871_V1, VARIABLE_CAMEROON_V238, VARIABLE_CAMEROON_V355, VARIABLE_LANDET_V1, VARIABLE_LANDET_V2, VARIABLE_MERGE_V22, VARIABLE_MERGE_V23, VARIABLE_MERGE_V26, VARIABLE_MERGE_V41, VID_2568_V1, VID_2568_V13, VID_2568_V16, VID_2568_V17, VID_2568_V18, VID_2568_V3, VID_2568_V354, VID_2568_V77, VID_44871_V1, VID_CAMEROON_V238, VID_CAMEROON_V355, VID_LANDET_V1, VID_LANDET_V2, VID_MERGE_V22, VID_MERGE_V23, VID_MERGE_V26, VID_MERGE_V41, WebDataURL
 
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 nesstar.test.NesstarTestCase
addAllTests, addAllTests, addDatafile, addPath, adminLogin, assertBinary, assertContains, assertContains, assertDoesNotContain, assertDoesNotContain, assertDuration, assertEqualIgnoreOrder, assertEquals, assertMatches, assertMatches, assertNoAccess, assertNoAccess, assertNoAccess, assertNotEquals, assertNotEquals, assertObjDoesNotExists, assertObjDoesNotExists, assertObjExists, assertObjExists, assertWebAuthorisationRequired, assertWebAuthorisationRequired, basicSetup, cannotRun, catalogSetup, checkIllegalArgument, checkPaths, checkPathsTo, checkPathsTo, checkPerformance, compareWithFile, compareWithReferenceFile, compareWithTestFile, compareWithTestFile, createDerivedVariable, createDerivedVariable, createDerivedVariableUnprotected, cubeSetup, cvsAbstractName, cvsClientSetup, cvsCompare, cvsCompare, cvsFailIfDifferent, cvsFailIfDifferent, cvsFileRevision, cvsFileRevisions, cvsRootDir, dependsOn, dependsOn, equalToFile, equalToTestFile, equalToTestFile, executeRangeQuery, executeRangeQuery, executeRangeQuery, executeRangeQueryAdditivity, expectFalse, expectTrue, extractZipFile, factsheetSetup, findPosition, flirtWithTestFile, getBrowserPage, getBrowserPage, getCatalog, getCategoryStatistic, getCategoryStatisticFromVariable, getConcept, getCurrentBrowserPage, getCvsPropertiesFile, getDatafile, getDDITestFile, getDDITestFileContents, getDerivedVariableByName, getDimension, getDimensionFromCube, getEGMSResource, getEGMSResource2, getEvent, getExisting, getFailedDir, getFailedFile, getFilenames, getFilteredTestFile, getGeographicalUnit, getLocalFile, getMaxConcurrentOps, getMeasure, getNumberCompletedOps, getNumberHTTPConnections, getNumberStartedOps, getObj, getObjectsFrom, getObjURL, getOrganisation, getPage, getPage, getPartsOf, getPartsOf, getPartsOf, getPerson, getRawPage, getRDF, getReport, getResultDir, getResultFile, getSecureObjURL, getSecureServerURL, getServerDataDir, getServerDatafile, getServerIP, getServerLog, getServerName, getServerObjURL, getServerPage, getServerPageURL, getServerPassword, getServerPort, getServerSecurePort, getServerURL, getServerUsername, getStatementsOn, getStatementsOn, getTableFromStudy, getTerm, getTestDir, getTestFile, getTestFile, getVariable, getVariableFromStudy, getWebFile, getZipFile, hasWebData, HCSetup, isLocalServer, isNTService, isOnline, isQuickie, isReleaseTest, isWaitForSQLServerIndexer, loadCube, loadDDI, loadHashFromFile, loadStudy, loadStudy3, loadVariable, msg, msg, noDirectAccess, objExists, objsExists, openEMWindow, performRangeQuery, querySetup, read, rebootServer, rebootServer, reloadObj, removeAllVars, removeCreationDate, removeProperties, removeServerURL, repeatCheck, saveToTestFile, setNTService, setQuickie, setReleaseTest, setWaitForSQLServerIndexer, statementSetup, studyCleanup, studySetup, tableSetup, toMsg, toString, untested, updateChildren, variableSetup, waitForSQLServerIndexer, waitServer, warn, webclientSetup, write, xthesaurusSetup
 
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

__home

public static UserHome __home
Constructor Detail

UserTestBase

public UserTestBase(String testName)
Constructor for the UserTestBase object

Parameters:
testName -
Method Detail

getHome

public static UserHome getHome()
                        throws Exception
Throws:
Exception

getProperiesTest

public static junit.framework.Test getProperiesTest()
                                             throws Exception
Returns:
all the tests on the properties of the User
Throws:
Exception

getAttributesTest

public static junit.framework.Test getAttributesTest()
                                              throws Exception
Returns:
all the tests on the attributes of the User
Throws:
Exception

getAssociationTest

public static junit.framework.Test getAssociationTest()
                                               throws Exception
Returns:
all the tests on the associations of the User
Throws:
Exception

getMethodsTest

public static junit.framework.Test getMethodsTest()
                                           throws Exception
Returns:
all the test on the methods of the User
Throws:
Exception

main

public static void main(String[] args)
The main program for the UserTestBase class

Parameters:
args - The command line arguments

suite

public static junit.framework.Test suite()
Return the suite of all tests of this class


testAttributeModificationDate

public void testAttributeModificationDate()
                                   throws Exception
A Test of the attribute modificationDate

Represents the date when the user was created or their details modified

Throws:
Exception

testAttributeComment

public void testAttributeComment()
                          throws Exception
A test on Comment

Throws:
Exception

testAttributeLabel

public void testAttributeLabel()
                        throws Exception
A test on Label

Throws:
Exception

testAttributeCreationDate

public void testAttributeCreationDate()
                               throws Exception
A test on CreationDate

Throws:
Exception

testHomeOperationFindByKey

public void testHomeOperationFindByKey()
                                throws Exception
A test on the home operation findByKey(String id)

Throws:
Exception

testHomeOperationFindAll

public void testHomeOperationFindAll()
                              throws Exception
A test on the home operation findAll(String id)

Throws:
Exception

testOperationAddAgreement

public void testOperationAddAgreement()
                               throws Exception
A Test of the operation AddAgreement(String agreementID)

add an agreement to the list of agreements accepted by the user.

Throws:
Exception

testOperationAddRole

public void testOperationAddRole()
                          throws Exception
A Test of the operation AddRole(String roleID)

add a new role to the user.

Access to this operation is granted ONLY to administrators

Throws:
Exception

testOperationAddProject

public void testOperationAddProject()
                             throws Exception
A Test of the operation AddProject(String projectID)

Add a new project to the list of project subscribed by the user.

Access to this operation is granted ONLY to administrators

Throws:
Exception

testOperationChangePassword

public void testOperationChangePassword()
                                 throws Exception
A Test of the operation ChangePassword(String password)

Change the user's password

Access to this operation is granted ONLY to administrators or to the user whose password is being changed

Throws:
Exception

testOperationSetProject

public void testOperationSetProject()
                             throws Exception
A Test of the operation SetProject(String projectID)

Select a project from the list of available projects to be used in the current session or current transaction

Throws:
Exception

testOperationSetRole

public void testOperationSetRole()
                          throws Exception
A Test of the operation SetRole(String purposeID)

it is used by the ACU challenge to select the purpose for the session

Name depends from old implementation of the Access Control Unit.

Throws:
Exception

testHomeOperationCreate

public void testHomeOperationCreate()
                             throws Exception
A Test of the Home operation create(String comment,String id,String password,String roleid,String purposeid,String label)

Throws:
Exception

testHomeOperationUpdate

public void testHomeOperationUpdate()
                             throws Exception
A Test of the Home operation update(String comment,String id,String password,String purposeid,String roleid,String label)

Throws:
Exception

testHomeOperationDelete

public void testHomeOperationDelete()
                             throws Exception
A Test of the Home operation delete(String id)

Throws:
Exception

testOperationDeleteRole

public void testOperationDeleteRole()
                             throws Exception
A Test of the operation DeleteRole(String roleID)

Delete a Role from the list of user's roles

Access to this operation is granted ONLY to administrators

Throws:
Exception

testOperationDeletePurpose

public void testOperationDeletePurpose()
                                throws Exception
A Test of the operation DeletePurpose(String purposeID)

Delete a Role from the list of user's roles

Access to this operation is granted ONLY to administrators

Throws:
Exception

testOperationAddPurpose

public void testOperationAddPurpose()
                             throws Exception
A Test of the operation AddPurpose(String purposeID)

add a new purpose to the list of purpose assigned to the user

Access to this operation is granted ONLY to administrators

Throws:
Exception

testOperationDeleteProject

public void testOperationDeleteProject()
                                throws Exception
A Test of the operation DeleteProject(String roleID)

Delete a Project from the list of user's projects

Access to this operation is granted ONLY to administrators

Throws:
Exception

testOperationRemove

public void testOperationRemove()
                         throws Exception
A Test of the operation Remove()

delete the user and all his/her soft properties

Access to this operation is granted ONLY to administrators.

Throws:
Exception

testHomeOperationGetCurrentUser

public void testHomeOperationGetCurrentUser()
                                     throws Exception
A Test of the Home operation getCurrentUser()

retrieves the user logged in the current session

Throws:
Exception

testAssociationAgreements

public void testAssociationAgreements()
                               throws Exception
A Test of the attribute agreements as collection of Agreement

Throws:
Exception

testAssociationRoles

public void testAssociationRoles()
                          throws Exception
A Test of the attribute roles as collection of Role

Throws:
Exception

testAssociationProjects

public void testAssociationProjects()
                             throws Exception
A Test of the attribute projects as collection of Project

Throws:
Exception

testAssociationPurposes

public void testAssociationPurposes()
                             throws Exception
A Test of the attribute purposes as collection of Purpose

Throws:
Exception

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved