org.silverpeas.attachment.web
Class SimpleDocumentResourceCreatorTest
java.lang.Object
com.sun.jersey.test.framework.JerseyTest
com.silverpeas.web.RESTWebServiceTest<T>
com.silverpeas.web.ResourceGettingTest<SimpleDocumentTestResource>
org.silverpeas.attachment.web.SimpleDocumentResourceCreatorTest
- All Implemented Interfaces:
- WebResourceTesting
public class SimpleDocumentResourceCreatorTest
- extends ResourceGettingTest<SimpleDocumentTestResource>
- Author:
- ehugonnet
| 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 |
SimpleDocumentResourceCreatorTest
public SimpleDocumentResourceCreatorTest()
prepareTestResources
public void prepareTestResources()
testCleanUp
public void testCleanUp()
throws Exception
- Throws:
Exception
gettingAnUnexistingResource
public void gettingAnUnexistingResource()
- Overrides:
gettingAnUnexistingResource in class ResourceGettingTest<SimpleDocumentTestResource>
testCreateDocument
public void testCreateDocument()
throws ParseException
- Test of createDocument method, of class SimpleDocumentResourceCreator.
- Throws:
ParseException
testCreateExistingDocument
public void testCreateExistingDocument()
throws ParseException
- Test of createDocument method, of class SimpleDocumentResourceCreator.
- Throws:
ParseException
getExistingComponentInstances
public String[] getExistingComponentInstances()
- Specified by:
getExistingComponentInstances in class RESTWebServiceTest<SimpleDocumentTestResource>
aResourceURI
public String aResourceURI()
anUnexistingResourceURI
public String anUnexistingResourceURI()
aResource
public <T> T aResource()
getSessionKey
public String getSessionKey()
getWebEntityClass
public Class<?> getWebEntityClass()
gettingAResourceByANonAuthenticatedUser
public void gettingAResourceByANonAuthenticatedUser()
- Overrides:
gettingAResourceByANonAuthenticatedUser in class ResourceGettingTest<SimpleDocumentTestResource>
gettingAResourceWithAnExpiredSession
public void gettingAResourceWithAnExpiredSession()
- Overrides:
gettingAResourceWithAnExpiredSession in class ResourceGettingTest<SimpleDocumentTestResource>
gettingAResourceByAnUnauthorizedUser
public void gettingAResourceByAnUnauthorizedUser()
- Overrides:
gettingAResourceByAnUnauthorizedUser in class ResourceGettingTest<SimpleDocumentTestResource>
Copyright © 2016 Silverpeas. All Rights Reserved.