com.silverpeas.delegatednews.web
Class DelegatedNewsTestResources
java.lang.Object
com.silverpeas.web.TestResources
com.silverpeas.delegatednews.web.DelegatedNewsTestResources
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
@Named(value="testRESTResources")
public class DelegatedNewsTestResources
- extends com.silverpeas.web.TestResources
A wrapper of resources used in the tests of the Delegated news web services.
Fields inherited from class com.silverpeas.web.TestResources |
DEFAULT_DOMAIN, DEFAULT_LANGUAGE, TEST_RESOURCES_NAME, USER_ID_IN_TEST |
Methods inherited from class com.silverpeas.web.TestResources |
aUser, aUserNamed, getAccessControllerMock, getApplicationContext, getOrganizationControllerMock, getPersonalizationServiceMock, getSessionManagerMock, getSpaceAccessControllerMock, getTestResources, getTokenServiceMock, registerUser, setApplicationContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAVA_PACKAGE
public static final String JAVA_PACKAGE
- See Also:
- Constant Field Values
SPRING_CONTEXT
public static final String SPRING_CONTEXT
- See Also:
- Constant Field Values
RESOURCE_PATH
public static final String RESOURCE_PATH
- See Also:
- Constant Field Values
INVALID_RESOURCE_PATH
public static final String INVALID_RESOURCE_PATH
- See Also:
- Constant Field Values
DelegatedNewsTestResources
public DelegatedNewsTestResources()
getDelegatedNewsServiceMock
public DelegatedNewsServiceMock getDelegatedNewsServiceMock()
- Gets the delegatednews service used in tests.
- Returns:
- the delegatednews service used in tests.
updateDelegatedNews
public DelegatedNewsEntity[] updateDelegatedNews(DelegatedNewsEntity[] delegatedNewsToUpdate)
- Parameters:
delegatedNewsToUpdate
-
- Returns:
Copyright © 2016 Silverpeas. All Rights Reserved.