Package org.silverpeas.web.test
Class ResourceUpdateTest
- java.lang.Object
- 
- org.silverpeas.web.test.RESTWebServiceTest
- 
- org.silverpeas.web.test.ResourceUpdateTest
 
 
- 
- All Implemented Interfaces:
- WebResourceTesting
 
 public abstract class ResourceUpdateTest extends RESTWebServiceTest implements WebResourceTesting Unit tests on the update of a resource in Silverpeas through a REST web service. This class is an abstract one and it implements some tests that are redondant over all web resources in Silverpeas (about authorization failure, authentication failure, ...)
- 
- 
Field Summary- 
Fields inherited from class org.silverpeas.web.test.RESTWebServiceTestdbSetupRule
 
- 
 - 
Constructor SummaryConstructors Constructor Description ResourceUpdateTest()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <I> IanInvalidResource()<C> CputAt(String uri, C newResourceState)Puts at the specified URI the specified new state of the resource.voidupdateOfAnUnexistingResource()voidupdateOfAResourceByANonAuthenticatedUser()voidupdateOfAResourceFromAnInvalidOne()voidupdateOfAResourceWithinADeprecatedSession()voidupdateOfResourceByANonAuthorizedUser()voidupdateWithAnInvalidResourceState()- 
Methods inherited from class org.silverpeas.web.test.RESTWebServiceTestapplyQueryParameters, authenticate, denyAuthorizationToUsers, denySpaceAuthorizationToUsers, getBaseURI, getDataSetScript, getExistingComponentInstances, getExistingTools, getSilverpeasEnvironmentTest, getTableCreationScript, getTokenKeyOf, getWebResourceBaseURIBuilder, reloadAdminCaches, resource, setUpHTTPRequest, setUserIdent, withAsAuthId
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.silverpeas.web.test.WebResourceTestinganUnexistingResourceURI, aResource, aResourceURI, getAPITokenValue, getWebEntityClass
 
- 
 
- 
- 
- 
Method Detail- 
anInvalidResourcepublic abstract <I> I anInvalidResource() 
 - 
putAtpublic <C> C putAt(String uri, C newResourceState) Puts at the specified URI the specified new state of the resource.- Type Parameters:
- C- the type of the resource's state.
- Parameters:
- uri- the URI at which the resource is.
- newResourceState- the new state of the resource.
- Returns:
- the updated state of the resource
 
 - 
updateOfAResourceByANonAuthenticatedUserpublic void updateOfAResourceByANonAuthenticatedUser() 
 - 
updateOfAResourceWithinADeprecatedSessionpublic void updateOfAResourceWithinADeprecatedSession() 
 - 
updateOfResourceByANonAuthorizedUserpublic void updateOfResourceByANonAuthorizedUser() 
 - 
updateOfAResourceFromAnInvalidOnepublic void updateOfAResourceFromAnInvalidOne() 
 - 
updateOfAnUnexistingResourcepublic void updateOfAnUnexistingResource() 
 - 
updateWithAnInvalidResourceStatepublic void updateWithAnInvalidResourceState() 
 
- 
 
-