|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.test.framework.JerseyTest
com.silverpeas.web.RESTWebServiceTest<T>
com.silverpeas.web.ResourceGettingTest<UserProfileTestResources>
com.silverpeas.profile.web.UserProfileResourceTest
public class UserProfileResourceTest
Unit tests on the operations published by the UserProfileResource REST service.
| Field Summary |
|---|
| Fields inherited from class com.silverpeas.web.RESTWebServiceTest |
|---|
CONTEXT_NAME |
| Fields inherited from interface com.silverpeas.web.WebResourceTesting |
|---|
HTTP_SESSIONKEY |
| Constructor Summary | |
|---|---|
UserProfileResourceTest()
|
|
| Method Summary | ||
|---|---|---|
String |
anUnexistingResourceURI()
|
|
|
aResource()
|
|
String |
aResourceURI()
|
|
void |
getAGivenUserInItsOwnsDomainWithFullDomainIsolation()
Whatever the domain isolation applied, a users can see another one in its own user domain. |
|
void |
getAGivenUserInItsOwnsDomainWithNoDomainIsolation()
Whatever the domain isolation applied, a users can see another one in its own user domain. |
|
void |
getAGivenUserInItsOwnsDomainWithSemiDomainIsolation()
Whatever the domain isolation applied, a users can see another one in its own user domain. |
|
void |
getAGivenUserWhateverItsDomainWithNoDomainIsolation()
With no domain isolation, a user can see another one whatever its user domain. |
|
void |
getAllUnaccessibleUsersWhateverTheDomainWhenInSilverpeasDomainAndWithFullDomainIsolation()
With a full domain isolation, the users in the Silverpeas domain cannot see the users of others user domains. |
|
void |
getAllUsersInItsOwnsDomainWithFullDomainIsolation()
Whatever the domain isolation applied, the users can see the others ones in their own user domain. |
|
void |
getAllUsersInItsOwnsDomainWithNoDomainIsolation()
Whatever the domain isolation applied, the users can see the others ones in their own user domain. |
|
void |
getAllUsersInItsOwnsDomainWithSemiDomainIsolation()
Whatever the domain isolation applied, the users can see the others ones in their own user domain. |
|
void |
getAllUsersOfAGivenGroupInItsOwnsDomainWithFullDomainIsolation()
Whavers the domain isolation applied, a user can see all the users of a group when they are in its own domain. |
|
void |
getAllUsersOfAGivenGroupInItsOwnsDomainWithNoIsolationDomain()
Whavers the domain isolation applied, a user can see all the users of a group when they are in its own domain. |
|
void |
getAllUsersOfAGivenGroupInItsOwnsDomainWithSemiDomainIsolation()
Whavers the domain isolation applied, a user can see all the users of a group when they are in its own domain. |
|
void |
getAllUsersOfAGivenGroupWhateverTheDomainWhenInSilverpeasDomainAndWithSemiDomainIsolation()
With a semi domain isolation, a user, whose the domain is the Silverpeas one, can see all the users of a group of another domain. |
|
void |
getAllUsersOfAnUnaccessibleGivenGroupWithFullDomainIsolation()
With a full isolation level, a user cannot see all the users of a group when not in its own user domain. |
|
void |
getAllUsersOfAnUnaccessibleGivenGroupWithSemiDomainIsolation()
With a semi isolation level, a user cannot see all the users of a group when not in its own user domain. |
|
void |
getAllUsersOfAnUnaccessibleGroupWhenInSilverpeasDomainAndWithFullDomainIsolation()
With a full domain isolation, a user, whose the domain is the Silverpeas one, cannot see all the users of a group of another domain. |
|
void |
getAllUsersWhateverTheDomainWhenInSilverpeasDomainAndWithSemiDomainIsolation()
With a semi domain isolation, the users in the Silverpeas domain can see the users whatever their user domain. |
|
void |
getAnUnaccessibleUserInAnotherDomainWithFullDomainIsolation()
With a full domain isolation, a user whose the domain isn't the Silverpeas one cannot see a user of another domain. |
|
void |
getAnUnaccessibleUserInAnotherDomainWithSemiDomainIsolation()
With a semi domain isolation, a user whose the domain isn't the Silverpeas one cannot see a user of another domain. |
|
void |
getAnUnaccessibleUserWhateverTheDomainWhenInSilverpeasDomainAndWhenInFullIsolation()
With a full domain isolation, a user in the silverpeas domain cannot see another one of another domain. |
|
void |
getAUserByItsFirstName()
A user can see another one by its first name. |
|
void |
getAUserByItsLastName()
A user can see another one by its last name. |
|
void |
getAUserByTheFirstCharactersOfItsName()
A user can see another ones by a pattern on their name. |
|
void |
getAUserInAGivenGroupByTheFirstCharactersOfItsName()
A user can see another ones in a given group by a pattern on their name. |
|
void |
getAUserWhateverTheDomainWhenInSilverpeasDomainAndWhenInSemiIsolation()
With a semi domain isolation, only a user in the silverpeas domain can see another one of another domain. |
|
String[] |
getExistingComponentInstances()
|
|
String |
getSessionKey()
|
|
void |
getTheContactsOfAGivenUser()
A user can see the relationships of another one. |
|
void |
getTheCurrentUserInTheSession()
A user can see its own profile without knowing its identifier. |
|
void |
gettingAllUsersOfAGivenGroupWhateverTheDomain()
With no domain isolation, a user can see all users of a given group whatever their user domain. |
|
void |
gettingAllUsersWhateverTheDomainWithNoDomainIsolation()
With no domain isolation, the users can see others ones whatever their user domain. |
|
void |
gettingAnUnexistingResource()
|
|
void |
gettingAResourceByAnUnauthorizedUser()
|
|
Class<UserProfileEntity[]> |
getWebEntityClass()
|
|
void |
prepareTestResources()
|
|
| Methods inherited from class com.silverpeas.web.ResourceGettingTest |
|---|
asMediaType, getAt, getAt, gettingAResourceByANonAuthenticatedUser, gettingAResourceWithAnExpiredSession, withAsSessionKey |
| Methods inherited from class com.sun.jersey.test.framework.JerseyTest |
|---|
client, configure, getBaseURI, getClient, getClientFactory, getPort, getTestContainerFactory, setClientFactory, setTestContainerFactory, setUp, tearDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserProfileResourceTest()
| Method Detail |
|---|
public void prepareTestResources()
public void gettingAllUsersWhateverTheDomainWithNoDomainIsolation()
public void getAllUsersInItsOwnsDomainWithNoDomainIsolation()
public void getAllUsersInItsOwnsDomainWithSemiDomainIsolation()
public void getAllUsersInItsOwnsDomainWithFullDomainIsolation()
public void getAllUsersWhateverTheDomainWhenInSilverpeasDomainAndWithSemiDomainIsolation()
public void getAllUnaccessibleUsersWhateverTheDomainWhenInSilverpeasDomainAndWithFullDomainIsolation()
public void getAGivenUserWhateverItsDomainWithNoDomainIsolation()
public void getAGivenUserInItsOwnsDomainWithNoDomainIsolation()
public void getAGivenUserInItsOwnsDomainWithSemiDomainIsolation()
public void getAGivenUserInItsOwnsDomainWithFullDomainIsolation()
public void getAUserWhateverTheDomainWhenInSilverpeasDomainAndWhenInSemiIsolation()
public void getAnUnaccessibleUserWhateverTheDomainWhenInSilverpeasDomainAndWhenInFullIsolation()
public void getAnUnaccessibleUserInAnotherDomainWithSemiDomainIsolation()
public void getAnUnaccessibleUserInAnotherDomainWithFullDomainIsolation()
public void gettingAllUsersOfAGivenGroupWhateverTheDomain()
public void getAllUsersOfAGivenGroupInItsOwnsDomainWithNoIsolationDomain()
public void getAllUsersOfAGivenGroupInItsOwnsDomainWithSemiDomainIsolation()
public void getAllUsersOfAGivenGroupInItsOwnsDomainWithFullDomainIsolation()
public void getAllUsersOfAGivenGroupWhateverTheDomainWhenInSilverpeasDomainAndWithSemiDomainIsolation()
public void getAllUsersOfAnUnaccessibleGroupWhenInSilverpeasDomainAndWithFullDomainIsolation()
public void getAllUsersOfAnUnaccessibleGivenGroupWithSemiDomainIsolation()
public void getAllUsersOfAnUnaccessibleGivenGroupWithFullDomainIsolation()
public void getAUserByItsFirstName()
public void getAUserByItsLastName()
public void getAUserByTheFirstCharactersOfItsName()
public void getAUserInAGivenGroupByTheFirstCharactersOfItsName()
public void getTheCurrentUserInTheSession()
public void getTheContactsOfAGivenUser()
public void gettingAResourceByAnUnauthorizedUser()
gettingAResourceByAnUnauthorizedUser in class ResourceGettingTest<UserProfileTestResources>public void gettingAnUnexistingResource()
gettingAnUnexistingResource in class ResourceGettingTest<UserProfileTestResources>public String[] getExistingComponentInstances()
getExistingComponentInstances in class RESTWebServiceTest<UserProfileTestResources>public String aResourceURI()
public String anUnexistingResourceURI()
public <T> T aResource()
public String getSessionKey()
public Class<UserProfileEntity[]> getWebEntityClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||