org.silverpeas.notification.web
Class MessagesGettingTest

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

public class MessagesGettingTest
extends ResourceGettingTest<NotificationTestResources>

Tests on the gallery photo getting by the GalleryResource web service.

Author:
Yohann Chastagnier

Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebServiceTest
CONTEXT_NAME
 
Fields inherited from interface com.silverpeas.web.WebResourceTesting
HTTP_SESSIONKEY
 
Constructor Summary
MessagesGettingTest()
           
 
Method Summary
 String anUnexistingResourceURI()
           
 Object aResource()
           
 String aResourceURI()
           
 String[] getExistingComponentInstances()
           
 void getMessages()
           
 String getSessionKey()
           
 void gettingAnUnexistingResource()
           
 void gettingAResourceByANonAuthenticatedUser()
           
 void gettingAResourceByAnUnauthorizedUser()
           
 void gettingAResourceWithAnExpiredSession()
           
 Class<MessageContainerEntity> getWebEntityClass()
           
 void prepareTestResources()
           
 void tearDown()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagesGettingTest

public MessagesGettingTest()
Method Detail

prepareTestResources

public void prepareTestResources()

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class com.sun.jersey.test.framework.JerseyTest
Throws:
Exception

getMessages

public void getMessages()

gettingAnUnexistingResource

public void gettingAnUnexistingResource()
Overrides:
gettingAnUnexistingResource in class ResourceGettingTest<NotificationTestResources>

gettingAResourceByANonAuthenticatedUser

public void gettingAResourceByANonAuthenticatedUser()
Overrides:
gettingAResourceByANonAuthenticatedUser in class ResourceGettingTest<NotificationTestResources>

gettingAResourceWithAnExpiredSession

public void gettingAResourceWithAnExpiredSession()
Overrides:
gettingAResourceWithAnExpiredSession in class ResourceGettingTest<NotificationTestResources>

gettingAResourceByAnUnauthorizedUser

public void gettingAResourceByAnUnauthorizedUser()
Overrides:
gettingAResourceByAnUnauthorizedUser in class ResourceGettingTest<NotificationTestResources>

aResourceURI

public String aResourceURI()

anUnexistingResourceURI

public String anUnexistingResourceURI()

aResource

public Object aResource()

getSessionKey

public String getSessionKey()

getWebEntityClass

public Class<MessageContainerEntity> getWebEntityClass()

getExistingComponentInstances

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


Copyright © 2016 Silverpeas. All Rights Reserved.