com.silverpeas.pdc.web
Class PredefinedClassificationUpdateTest

java.lang.Object
  extended by com.sun.jersey.test.framework.JerseyTest
      extended by com.silverpeas.web.RESTWebServiceTest<T>
          extended by com.silverpeas.web.ResourceUpdateTest<PdcTestResources>
              extended by com.silverpeas.pdc.web.PredefinedClassificationUpdateTest
All Implemented Interfaces:
WebResourceTesting

public class PredefinedClassificationUpdateTest
extends ResourceUpdateTest<PdcTestResources>

Unit tests on the update of an existing position within the PdC classification of a resource.


Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebServiceTest
CONTEXT_NAME
 
Fields inherited from interface com.silverpeas.web.WebResourceTesting
HTTP_SESSIONKEY
 
Constructor Summary
PredefinedClassificationUpdateTest()
           
 
Method Summary
 PdcClassificationEntity anInvalidResource()
           
 String anUnexistingResourceURI()
           
 PdcClassificationEntity aResource()
           
 String aResourceURI()
           
 String[] getExistingComponentInstances()
           
 String getSessionKey()
           
 Class<?> getWebEntityClass()
           
 void noUpdate()
           
 void setUpUserSessionAndPdCClassifications()
           
 void updateByAddingAnExistingPdcPosition()
           
 void updateByDeletingAllPdcPositions()
           
 void updateByDeletingAnExistingPdcPosition()
           
 void updateByModifyingAnExistingPdcPosition()
           
 void updateOfAResourceFromAnInvalidOne()
           
 
Methods inherited from class com.silverpeas.web.ResourceUpdateTest
putAt, updateOfAnUnexistingResource, updateOfAResourceByANonAuthenticatedUser, updateOfAResourceWithinADeprecatedSession, updateOfResourceByANonAuthorizedUser, updateWithAnInvalidResourceState
 
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

PredefinedClassificationUpdateTest

public PredefinedClassificationUpdateTest()
Method Detail

setUpUserSessionAndPdCClassifications

public void setUpUserSessionAndPdCClassifications()

updateOfAResourceFromAnInvalidOne

public void updateOfAResourceFromAnInvalidOne()
Overrides:
updateOfAResourceFromAnInvalidOne in class ResourceUpdateTest<PdcTestResources>

noUpdate

public void noUpdate()
              throws Exception
Throws:
Exception

updateByAddingAnExistingPdcPosition

public void updateByAddingAnExistingPdcPosition()
                                         throws Exception
Throws:
Exception

updateByModifyingAnExistingPdcPosition

public void updateByModifyingAnExistingPdcPosition()
                                            throws Exception
Throws:
Exception

updateByDeletingAnExistingPdcPosition

public void updateByDeletingAnExistingPdcPosition()
                                           throws Exception
Throws:
Exception

updateByDeletingAllPdcPositions

public void updateByDeletingAllPdcPositions()
                                     throws Exception
Throws:
Exception

aResourceURI

public String aResourceURI()

anUnexistingResourceURI

public String anUnexistingResourceURI()

aResource

public PdcClassificationEntity aResource()

getSessionKey

public String getSessionKey()

getWebEntityClass

public Class<?> getWebEntityClass()

anInvalidResource

public PdcClassificationEntity anInvalidResource()
Specified by:
anInvalidResource in class ResourceUpdateTest<PdcTestResources>

getExistingComponentInstances

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


Copyright © 2016 Silverpeas. All Rights Reserved.