|
||||||||||
| 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.UserGroupProfileResourceTest
public class UserGroupProfileResourceTest
Unit tests on the operations published by the UserGroupProfileResource 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 | |
|---|---|
UserGroupProfileResourceTest()
|
|
| Method Summary | ||
|---|---|---|
String |
anUnexistingResourceURI()
|
|
|
aResource()
|
|
String |
aResourceURI()
|
|
void |
getAGivenAccessibleGroupOnlyInItsOwnDomainWithFullDomainIsolation()
With full domain isolation, a user can access only a user group of its own domain. |
|
void |
getAGivenAccessibleGroupWhateverTheDomainWhenInSilverpeasDomainAndWithSemiDomainIsolation()
With a semi domain isolation, only a user in the Silverpeas domain can access a user group of another domain. |
|
void |
getAGivenAccessibleGroupWhateverTheDomainWithNoDomainIsolation()
With no domain isolation, a user can access a given user group, whatever the domain. |
|
void |
getAGivenUnaccessibleGroupInAnotherDomainWithFullDomainIsolation()
With full domain isolation, a user cannot access a user group of another domain. |
|
void |
getAGivenUnaccessibleGroupInAnotherDomainWithSemiDomainIsolation()
With semi domain isolation, a user that is not in the Silverpeas domain cannot access a user group of another domain. |
|
void |
getAGroupByItsName()
A user can access a user group by its name. |
|
void |
getAGroupByTheFirstCharactersOfItsName()
A user can access a user group by a pattern on its name. |
|
void |
getAllGroupsInItsOwnDomainWhenInSilverpeasDomainAndWithFullDomainIsolation()
With a full domain isolation, a user in the Silverpeas domain can see only the user groups of its own domain. |
|
void |
getAllRootGroupsInItsOwnDomainWithFullDomainIsolation()
With a full domain isolation, a user can see only the user groups of its own domain. |
|
void |
getAllRootGroupsInItsOwnsDomainWithSemiDomainIsolation()
With a semi domain isolation, a user can see only the user groups of its own domain. |
|
void |
getAllRootGroupsWhateverTheDomainWhenInSilverpeasDomainAndWithSemiDomainIsolation()
With a semi domain isolation, only a user in the Silverpeas domain can see the user groups of another domain. |
|
void |
getAllRootGroupsWhateverTheDomainWithNoDomainIsolation()
With no domain isolation, a user can see the user groups of another domain. |
|
String[] |
getExistingComponentInstances()
|
|
String |
getSessionKey()
|
|
void |
getTheSubGroupsOfAGivenAccessibleGroupOnlyInItsOwnDomainWithFullDomainIsolation()
With full isolation domain, a user can access the subgroups of a user group of its own domain. |
|
void |
getTheSubGroupsOfAGivenAccessibleGroupOnlyInItsOwnDomainWithSemiDomainIsolation()
With semi isolation domain, a user can access the subgroups of a user group of its own domain. |
|
void |
getTheSubGroupsOfAGivenAccessibleGroupWhateverTheDomainWithNoDomainIsolation()
With no isolation domain, a user can access the subgroups of a user group whatever their domain. |
|
void |
getTheSubGroupsOfAGivenUnaccessibleGroupInAnotherDomain()
With full domain isolation, a user cannot access the subgroups of a group in another domain. |
|
void |
getTheSubGroupsOfAGivenUnaccessibleGroupInAnotherDomainWithSemiDomainIsolation()
With semi domain isolation, a user, not in the Silverpeas domain, cannot access the subgroups of a group in another domain. |
|
void |
gettingAnUnexistingResource()
|
|
void |
gettingAResourceByAnUnauthorizedUser()
|
|
Class<UserGroupProfileEntity[]> |
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 UserGroupProfileResourceTest()
| Method Detail |
|---|
public void prepareTestResources()
public void getAllRootGroupsWhateverTheDomainWithNoDomainIsolation()
public void getAllRootGroupsWhateverTheDomainWhenInSilverpeasDomainAndWithSemiDomainIsolation()
public void getAllGroupsInItsOwnDomainWhenInSilverpeasDomainAndWithFullDomainIsolation()
public void getAllRootGroupsInItsOwnsDomainWithSemiDomainIsolation()
public void getAllRootGroupsInItsOwnDomainWithFullDomainIsolation()
public void getAGivenAccessibleGroupWhateverTheDomainWithNoDomainIsolation()
public void getAGivenAccessibleGroupWhateverTheDomainWhenInSilverpeasDomainAndWithSemiDomainIsolation()
public void getAGivenAccessibleGroupOnlyInItsOwnDomainWithFullDomainIsolation()
public void getAGivenUnaccessibleGroupInAnotherDomainWithSemiDomainIsolation()
public void getAGivenUnaccessibleGroupInAnotherDomainWithFullDomainIsolation()
public void getTheSubGroupsOfAGivenAccessibleGroupWhateverTheDomainWithNoDomainIsolation()
public void getTheSubGroupsOfAGivenAccessibleGroupOnlyInItsOwnDomainWithSemiDomainIsolation()
public void getTheSubGroupsOfAGivenAccessibleGroupOnlyInItsOwnDomainWithFullDomainIsolation()
public void getTheSubGroupsOfAGivenUnaccessibleGroupInAnotherDomainWithSemiDomainIsolation()
public void getTheSubGroupsOfAGivenUnaccessibleGroupInAnotherDomain()
public void getAGroupByItsName()
public void getAGroupByTheFirstCharactersOfItsName()
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<UserGroupProfileEntity[]> getWebEntityClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||