com.silverpeas.authentication.web
Class WebServiceAuthenticationTest

java.lang.Object
  extended by com.sun.jersey.test.framework.JerseyTest
      extended by com.silverpeas.web.RESTWebServiceTest<WebTestResources>
          extended by com.silverpeas.authentication.web.WebServiceAuthenticationTest

public class WebServiceAuthenticationTest
extends RESTWebServiceTest<WebTestResources>

Tests on the authentication process when accessing the WEB resources published as REST services.


Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebServiceTest
CONTEXT_NAME
 
Constructor Summary
WebServiceAuthenticationTest()
           
 
Method Summary
 void accessDenied()
           
 void accessWebResourcesFromUserToken()
           
 void accessWebResourcesInAnOpenedSession()
           
 void authenticate()
           
 String[] getExistingComponentInstances()
           
 void init()
           
 void openASessionAndAccessWebResourcesInAnInexistingSession()
           
 void openASessionAndAccessWebResourcesOutOfTheOpenedSession()
           
 
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

WebServiceAuthenticationTest

public WebServiceAuthenticationTest()
Method Detail

getExistingComponentInstances

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

init

public void init()

accessDenied

public void accessDenied()

authenticate

public void authenticate()
                  throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

accessWebResourcesInAnOpenedSession

public void accessWebResourcesInAnOpenedSession()

accessWebResourcesFromUserToken

public void accessWebResourcesFromUserToken()

openASessionAndAccessWebResourcesOutOfTheOpenedSession

public void openASessionAndAccessWebResourcesOutOfTheOpenedSession()

openASessionAndAccessWebResourcesInAnInexistingSession

public void openASessionAndAccessWebResourcesInAnInexistingSession()


Copyright © 2016 Silverpeas. All Rights Reserved.