com.silverpeas.delegatednews.web
Class DelegatedNewsTestResources

java.lang.Object
  extended by com.silverpeas.web.TestResources
      extended by 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.


Field Summary
static String INVALID_RESOURCE_PATH
           
static String JAVA_PACKAGE
           
static String RESOURCE_PATH
           
static String SPRING_CONTEXT
           
 
Fields inherited from class com.silverpeas.web.TestResources
DEFAULT_DOMAIN, DEFAULT_LANGUAGE, TEST_RESOURCES_NAME, USER_ID_IN_TEST
 
Constructor Summary
DelegatedNewsTestResources()
           
 
Method Summary
 DelegatedNewsServiceMock getDelegatedNewsServiceMock()
          Gets the delegatednews service used in tests.
 DelegatedNewsEntity[] updateDelegatedNews(DelegatedNewsEntity[] delegatedNewsToUpdate)
           
 
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
 

Field Detail

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
Constructor Detail

DelegatedNewsTestResources

public DelegatedNewsTestResources()
Method Detail

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.