com.silverpeas.pdc.web
Class PredefinedClassificationCreationTest

java.lang.Object
  extended by com.sun.jersey.test.framework.JerseyTest
      extended by com.silverpeas.web.RESTWebServiceTest<T>
          extended by com.silverpeas.web.ResourceCreationTest<PdcTestResources>
              extended by com.silverpeas.pdc.web.PredefinedClassificationCreationTest
All Implemented Interfaces:
WebResourceTesting

public class PredefinedClassificationCreationTest
extends ResourceCreationTest<PdcTestResources>

Unit tests on the adding of positions with a predefined classification web resources.


Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebServiceTest
CONTEXT_NAME
 
Fields inherited from interface com.silverpeas.web.WebResourceTesting
HTTP_SESSIONKEY
 
Constructor Summary
PredefinedClassificationCreationTest()
           
 
Method Summary
 String anUnexistingResourceURI()
           
 PdcClassificationEntity aResource()
           
 String aResourceURI()
           
 void createAnAlreadyExistingPredefinedClassification()
           
 void createAPredefinedClassificationOnThePdC()
           
 void createAPredefinedClassificationWithAPositionWithoutAnyValues()
           
 void createAPredefinedClassificationWithoutAnyPositions()
           
 String[] getExistingComponentInstances()
           
 String getSessionKey()
           
 Class<?> getWebEntityClass()
           
 void setUpUserSessionAndPdCClassifications()
           
 
Methods inherited from class com.silverpeas.web.ResourceCreationTest
at, creationOfANewResourceByANonAuthenticatedUser, creationOfANewResourceByANonAuthorizedUser, creationOfANewResourceWithADeprecatedSession, post, postAnInvalidResourceState
 
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

PredefinedClassificationCreationTest

public PredefinedClassificationCreationTest()
Method Detail

setUpUserSessionAndPdCClassifications

public void setUpUserSessionAndPdCClassifications()

createAPredefinedClassificationOnThePdC

public void createAPredefinedClassificationOnThePdC()
                                             throws Exception
Throws:
Exception

createAnAlreadyExistingPredefinedClassification

public void createAnAlreadyExistingPredefinedClassification()
                                                     throws Exception
Throws:
Exception

createAPredefinedClassificationWithoutAnyPositions

public void createAPredefinedClassificationWithoutAnyPositions()
                                                        throws Exception
Throws:
Exception

createAPredefinedClassificationWithAPositionWithoutAnyValues

public void createAPredefinedClassificationWithAPositionWithoutAnyValues()
                                                                  throws Exception
Throws:
Exception

getExistingComponentInstances

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

aResourceURI

public String aResourceURI()

anUnexistingResourceURI

public String anUnexistingResourceURI()

aResource

public PdcClassificationEntity aResource()

getSessionKey

public String getSessionKey()

getWebEntityClass

public Class<?> getWebEntityClass()


Copyright © 2016 Silverpeas. All Rights Reserved.