org.silverpeas.resourcemanager.services
Class ResourceServiceTest

java.lang.Object
  extended by org.silverpeas.resourcemanager.services.ResourceServiceTest

@ContextConfiguration(locations={"/spring-resource-manager-datasource.xml","/spring-resource-manager.xml"})
@Transactional
@TransactionConfiguration(transactionManager="jpaTransactionManager")
public class ResourceServiceTest
extends Object

Author:
ehugonnet

Constructor Summary
ResourceServiceTest()
           
 
Method Summary
 void generalSetUp()
           
static void prepareDataset()
           
 void testAddManager()
          Test of addManager method, of class ResourceService.
 void testAddManagers()
          Test of addManagers method, of class ResourceService.
 void testCreateResource()
          Test of createResource method, of class ResourceService.
 void testDeleteResource()
          Test of deleteResource method, of class ResourceService.
 void testDeleteResourcesFromCategory()
          Test of deleteResourcesFromCategory method, of class ResourceService.
 void testGetResource()
          Test of getResource method, of class ResourceService.
 void testGetResources()
          Test of getResources method, of class ResourceService.
 void testGetResourcesByCategory()
          Test of getResourcesByCategory method, of class ResourceService.
 void testIsManager()
          Test of addManagers method, of class ResourceService.
 void testListAvailableResourcesAfterReservationRange()
           
 void testListAvailableResourcesInReservationRange()
           
 void testListAvailableResourcesJustBeforeReservation()
           
 void testListAvailableResourcesWithReservationOutOfRange()
          Test of listAvailableResources method, of class ResourceService.
 void testListAvailableResourcesWithReservationOverlappingRange()
          Test of listAvailableResources method, of class ResourceService.
 void testRemoveAllManagers()
          Test of removeAllManagers method, of class ResourceService.
 void testRemoveManager()
          Test of removeManager method, of class ResourceService.
 void testUpdateResource()
          Test of updateResource method, of class ResourceService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceServiceTest

public ResourceServiceTest()
Method Detail

prepareDataset

public static void prepareDataset()
                           throws Exception
Throws:
Exception

generalSetUp

public void generalSetUp()
                  throws Exception
Throws:
Exception

testCreateResource

public void testCreateResource()
Test of createResource method, of class ResourceService.


testUpdateResource

public void testUpdateResource()
Test of updateResource method, of class ResourceService.


testGetResources

public void testGetResources()
Test of getResources method, of class ResourceService.


testGetResource

public void testGetResource()
Test of getResource method, of class ResourceService.


testDeleteResource

public void testDeleteResource()
Test of deleteResource method, of class ResourceService.


testDeleteResourcesFromCategory

public void testDeleteResourcesFromCategory()
Test of deleteResourcesFromCategory method, of class ResourceService.


testAddManagers

public void testAddManagers()
Test of addManagers method, of class ResourceService.


testIsManager

public void testIsManager()
Test of addManagers method, of class ResourceService.


testAddManager

public void testAddManager()
Test of addManager method, of class ResourceService.


testRemoveAllManagers

public void testRemoveAllManagers()
Test of removeAllManagers method, of class ResourceService.


testRemoveManager

public void testRemoveManager()
Test of removeManager method, of class ResourceService.


testGetResourcesByCategory

public void testGetResourcesByCategory()
Test of getResourcesByCategory method, of class ResourceService.


testListAvailableResourcesWithReservationOutOfRange

public void testListAvailableResourcesWithReservationOutOfRange()
Test of listAvailableResources method, of class ResourceService.


testListAvailableResourcesJustBeforeReservation

public void testListAvailableResourcesJustBeforeReservation()

testListAvailableResourcesInReservationRange

public void testListAvailableResourcesInReservationRange()

testListAvailableResourcesAfterReservationRange

public void testListAvailableResourcesAfterReservationRange()

testListAvailableResourcesWithReservationOverlappingRange

public void testListAvailableResourcesWithReservationOverlappingRange()
Test of listAvailableResources method, of class ResourceService.



Copyright © 2016 Silverpeas. All Rights Reserved.