org.silverpeas.admin.web
Class SpaceGettingTest

java.lang.Object
  extended by com.sun.jersey.test.framework.JerseyTest
      extended by com.silverpeas.web.RESTWebServiceTest<T>
          extended by com.silverpeas.web.ResourceGettingTest<AdminTestResources>
              extended by org.silverpeas.admin.web.SpaceGettingTest
All Implemented Interfaces:
WebResourceTesting

public class SpaceGettingTest
extends ResourceGettingTest<AdminTestResources>

Tests on the comment getting by the CommentResource web service.

Author:
Yohann Chastagnier

Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebServiceTest
CONTEXT_NAME
 
Fields inherited from interface com.silverpeas.web.WebResourceTesting
HTTP_SESSIONKEY
 
Constructor Summary
SpaceGettingTest()
           
 
Method Summary
 String anUnexistingResourceURI()
           
 SpaceInstLight aResource()
           
 String aResourceURI()
           
 String aResourceURI(String id)
           
 void get()
           
 void get3()
           
 void get3ForceGettingFavorite()
           
 void getAll()
           
 void getAllForceGettingFavorite()
           
 void getAppearance()
           
 void getAppearance3()
           
 void getAppearanceDenied()
           
 void getComponents()
           
 void getComponents3()
           
 void getComponentsDenied()
           
 void getContent()
           
 void getContent3()
           
 void getContentDenied()
           
 void getDenied()
           
 String[] getExistingComponentInstances()
           
 void getForceGettingFavorite()
           
 void getPersonals()
           
 String getSessionKey()
           
 void getSpaces()
           
 void getSpaces3()
           
 void getSpaces3ForceGettingFavorite()
           
 void getSpacesDenied()
           
 void gettingAResourceByAnUnauthorizedUser()
           
 void getUsersAndGroupsRoles()
           
 Class<?> getWebEntityClass()
           
 void prepareTestResources()
           
 
Methods inherited from class com.silverpeas.web.ResourceGettingTest
asMediaType, getAt, getAt, gettingAnUnexistingResource, gettingAResourceByANonAuthenticatedUser, gettingAResourceWithAnExpiredSession, withAsSessionKey
 
Methods inherited from class com.silverpeas.web.RESTWebServiceTest
addComponentInstance, addTool, aUser, authenticate, buildQueryParametersFrom, denieAuthorizationToUsers, denieSpaceAuthorizationToUsers, getAccessControllerMock, getExistingTools, getMockedSpaceAccessController, getOrganizationControllerMock, getPersonalizationServiceMock, getTestResources, prepareMockedResources, resource, setComponentAccessibilityToUser
 
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

SpaceGettingTest

public SpaceGettingTest()
Method Detail

prepareTestResources

public void prepareTestResources()

get

public void get()

getForceGettingFavorite

public void getForceGettingFavorite()

getDenied

public void getDenied()

get3

public void get3()

get3ForceGettingFavorite

public void get3ForceGettingFavorite()

getAll

public void getAll()

getAllForceGettingFavorite

public void getAllForceGettingFavorite()

getSpaces

public void getSpaces()

getSpacesDenied

public void getSpacesDenied()

getSpaces3

public void getSpaces3()

getSpaces3ForceGettingFavorite

public void getSpaces3ForceGettingFavorite()

getUsersAndGroupsRoles

public void getUsersAndGroupsRoles()

getAppearance

public void getAppearance()

getAppearanceDenied

public void getAppearanceDenied()

getAppearance3

public void getAppearance3()

getPersonals

public void getPersonals()

getComponents

public void getComponents()

getComponentsDenied

public void getComponentsDenied()

getComponents3

public void getComponents3()

getContent

public void getContent()

getContentDenied

public void getContentDenied()

getContent3

public void getContent3()

gettingAResourceByAnUnauthorizedUser

public void gettingAResourceByAnUnauthorizedUser()
Overrides:
gettingAResourceByAnUnauthorizedUser in class ResourceGettingTest<AdminTestResources>

aResourceURI

public String aResourceURI()

aResourceURI

public String aResourceURI(String id)

anUnexistingResourceURI

public String anUnexistingResourceURI()

aResource

public SpaceInstLight aResource()

getSessionKey

public String getSessionKey()

getWebEntityClass

public Class<?> getWebEntityClass()

getExistingComponentInstances

public String[] getExistingComponentInstances()
Specified by:
getExistingComponentInstances in class RESTWebServiceTest<AdminTestResources>


Copyright © 2016 Silverpeas. All Rights Reserved.