org.silverpeas.admin.web
Class SpaceDeletionTest

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

public class SpaceDeletionTest
extends ResourceDeletionTest<AdminTestResources>

Unit tests on the update of a comment through the CommentResource web 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
SpaceDeletionTest()
           
 
Method Summary
 String anUnexistingResourceURI()
           
 PersonalComponentEntity aResource()
           
 String aResourceURI()
           
 String aResourceURI(String id)
           
 void deletionOfAResourceByANonAuthorizedUser()
           
 void discardComponent()
           
 void discardComponentUnknown()
           
 String[] getExistingComponentInstances()
           
 String getSessionKey()
           
 Class<?> getWebEntityClass()
           
 void prepareTestResources()
           
 
Methods inherited from class com.silverpeas.web.ResourceDeletionTest
deleteAt, deleteAt, deletionOfAnUnexistingResource, deletionOfAResourceByANonAuthenticatedUser, deletionOfAResourceWithADeprecatedSession
 
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

SpaceDeletionTest

public SpaceDeletionTest()
Method Detail

prepareTestResources

public void prepareTestResources()

discardComponent

public void discardComponent()

discardComponentUnknown

public void discardComponentUnknown()

aResourceURI

public String aResourceURI()

aResourceURI

public String aResourceURI(String id)

anUnexistingResourceURI

public String anUnexistingResourceURI()

deletionOfAResourceByANonAuthorizedUser

public void deletionOfAResourceByANonAuthorizedUser()
Overrides:
deletionOfAResourceByANonAuthorizedUser in class ResourceDeletionTest<AdminTestResources>

aResource

public PersonalComponentEntity 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.