org.silverpeas.admin.web
Class AdminTestResources
java.lang.Object
com.silverpeas.web.TestResources
org.silverpeas.admin.web.AdminTestResources
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
@Named(value="testRESTResources")
public class AdminTestResources
- extends TestResources
Resources required by all the unit tests on the comment web resource.
| 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
AdminTestResources
public AdminTestResources()
initializeMocks
protected void initializeMocks()
- "thenAnswer" is used at this level because the returned value is calculated when the method is
called in contrary to "thenReturn" which is only calculated on the initialization
save
public void save(ComponentInstLight... components)
save
public void save(SpaceInstLight... spaces)
getSpaceBuilder
public static SpaceBuilder getSpaceBuilder(int id)
getComponentBuilder
public static ComponentBuilder getComponentBuilder(int id)
Copyright © 2016 Silverpeas. All Rights Reserved.