org.silverpeas.admin.web
Class AdminTestResources

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


Field Summary
static String JAVA_PACKAGE
           
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
AdminTestResources()
           
 
Method Summary
static ComponentBuilder getComponentBuilder(int id)
           
static SpaceBuilder getSpaceBuilder(int id)
           
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
 void save(ComponentInstLight... components)
           
 void save(SpaceInstLight... spaces)
           
 
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
Constructor Detail

AdminTestResources

public AdminTestResources()
Method Detail

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.