com.silverpeas.gallery.web
Class GalleryMediaGettingTest

java.lang.Object
  extended by com.sun.jersey.test.framework.JerseyTest
      extended by com.silverpeas.web.RESTWebServiceTest<T>
          extended by com.silverpeas.web.ResourceGettingTest<GalleryTestResources>
              extended by com.silverpeas.gallery.web.GalleryMediaGettingTest
All Implemented Interfaces:
com.silverpeas.web.WebResourceTesting

public class GalleryMediaGettingTest
extends com.silverpeas.web.ResourceGettingTest<GalleryTestResources>

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
GalleryMediaGettingTest()
           
 
Method Summary
 String anUnexistingResourceURI()
           
 Media aResource()
           
 String aResourceURI()
           
 String[] getExistingComponentInstances()
           
 void getPhoto()
           
 String getSessionKey()
           
 void getSound()
           
 void getStreaming()
           
 void getVideo()
           
 Class<?> getWebEntityClass()
           
 void prepareTestResources()
           
 
Methods inherited from class com.silverpeas.web.ResourceGettingTest
asMediaType, getAt, getAt, gettingAnUnexistingResource, gettingAResourceByANonAuthenticatedUser, gettingAResourceByAnUnauthorizedUser, gettingAResourceWithAnExpiredSession, 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

GalleryMediaGettingTest

public GalleryMediaGettingTest()
Method Detail

prepareTestResources

public void prepareTestResources()

getPhoto

public void getPhoto()

getVideo

public void getVideo()

getSound

public void getSound()

getStreaming

public void getStreaming()

aResourceURI

public String aResourceURI()

anUnexistingResourceURI

public String anUnexistingResourceURI()

aResource

public Media aResource()

getSessionKey

public String getSessionKey()

getWebEntityClass

public Class<?> getWebEntityClass()

getExistingComponentInstances

public String[] getExistingComponentInstances()
Specified by:
getExistingComponentInstances in class com.silverpeas.web.RESTWebServiceTest<GalleryTestResources>


Copyright © 2016 Silverpeas. All Rights Reserved.