com.silverpeas.subscribe.web
Class SubscriptionTestResources

java.lang.Object
  extended by com.silverpeas.web.TestResources
      extended by com.silverpeas.subscribe.web.SubscriptionTestResources
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Named(value="testRESTResources")
public class SubscriptionTestResources
extends TestResources

Wrapper of resources required by the unit tests on the subscription web service.


Field Summary
static String COMPONENT_ID
           
static String SUBSCRIBE_RESOURCE_PATH
           
static String SUBSCRIPTION_RESOURCE_PATH
           
static String UNSUBSCRIBE_RESOURCE_PATH
           
 
Fields inherited from class com.silverpeas.web.TestResources
DEFAULT_DOMAIN, DEFAULT_LANGUAGE, TEST_RESOURCES_NAME, USER_ID_IN_TEST
 
Constructor Summary
SubscriptionTestResources()
           
 
Method Summary
 MockableSubscriptionService getMockableSubscriptionService()
           
 void setupMocks()
           
 
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

COMPONENT_ID

public static final String COMPONENT_ID
See Also:
Constant Field Values

SUBSCRIBE_RESOURCE_PATH

public static final String SUBSCRIBE_RESOURCE_PATH
See Also:
Constant Field Values

SUBSCRIPTION_RESOURCE_PATH

public static final String SUBSCRIPTION_RESOURCE_PATH
See Also:
Constant Field Values

UNSUBSCRIBE_RESOURCE_PATH

public static final String UNSUBSCRIBE_RESOURCE_PATH
See Also:
Constant Field Values
Constructor Detail

SubscriptionTestResources

public SubscriptionTestResources()
Method Detail

setupMocks

@PostConstruct
public void setupMocks()

getMockableSubscriptionService

public MockableSubscriptionService getMockableSubscriptionService()


Copyright © 2016 Silverpeas. All Rights Reserved.