org.silverpeas.attachment.web
Class SimpleDocumentResourceCreatorTest

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

public class SimpleDocumentResourceCreatorTest
extends ResourceGettingTest<SimpleDocumentTestResource>

Author:
ehugonnet

Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebServiceTest
CONTEXT_NAME
 
Fields inherited from interface com.silverpeas.web.WebResourceTesting
HTTP_SESSIONKEY
 
Constructor Summary
SimpleDocumentResourceCreatorTest()
           
 
Method Summary
 String anUnexistingResourceURI()
           
<T> T
aResource()
           
 String aResourceURI()
           
 String[] getExistingComponentInstances()
           
 String getSessionKey()
           
 void gettingAnUnexistingResource()
           
 void gettingAResourceByANonAuthenticatedUser()
           
 void gettingAResourceByAnUnauthorizedUser()
           
 void gettingAResourceWithAnExpiredSession()
           
 Class<?> getWebEntityClass()
           
 void prepareTestResources()
           
 void testCleanUp()
           
 void testCreateDocument()
          Test of createDocument method, of class SimpleDocumentResourceCreator.
 void testCreateExistingDocument()
          Test of createDocument method, of class SimpleDocumentResourceCreator.
 
Methods inherited from class com.silverpeas.web.ResourceGettingTest
asMediaType, getAt, getAt, 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

SimpleDocumentResourceCreatorTest

public SimpleDocumentResourceCreatorTest()
Method Detail

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.