com.silverpeas.pdc.web
Class PdcGettingForClassificationTest
java.lang.Object
com.sun.jersey.test.framework.JerseyTest
com.silverpeas.web.RESTWebServiceTest<T>
com.silverpeas.web.ResourceGettingTest<PdcTestResources>
com.silverpeas.pdc.web.PdcGettingForClassificationTest
- All Implemented Interfaces:
- WebResourceTesting
public class PdcGettingForClassificationTest
- extends ResourceGettingTest<PdcTestResources>
Unit tests on the getting of the PdC configured for a given component instance in the context to
classify a content.
| 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 |
PdcGettingForClassificationTest
public PdcGettingForClassificationTest()
setUpUserSessionAndPdC
public void setUpUserSessionAndPdC()
gettingThePdcToClassifyAContent
public void gettingThePdcToClassifyAContent()
throws Exception
- Throws:
Exception
gettingThePdcOfAComponentInstance
public void gettingThePdcOfAComponentInstance()
throws Exception
- Throws:
Exception
aResourceURI
public String aResourceURI()
anUnexistingResourceURI
public String anUnexistingResourceURI()
aResource
public <T> T aResource()
getSessionKey
public String getSessionKey()
getWebEntityClass
public Class<?> getWebEntityClass()
aPdcEntity
public Class<PdcEntity> aPdcEntity()
toWebEntity
public PdcEntity toWebEntity(List<UsedAxis> axis,
String uri)
throws ThesaurusException
- Throws:
ThesaurusException
theExpectedPdcFor
protected List<UsedAxis> theExpectedPdcFor(String contentId)
throws ContentManagerException,
PdcException
- Throws:
ContentManagerException
PdcException
theExpectedPdc
protected List<UsedAxis> theExpectedPdc()
throws PdcException
- Throws:
PdcException
withURI
protected static String withURI(String uri)
getExistingComponentInstances
public String[] getExistingComponentInstances()
- Specified by:
getExistingComponentInstances in class RESTWebServiceTest<PdcTestResources>
Copyright © 2016 Silverpeas. All Rights Reserved.