org.silverpeas.resourcemanager.services
Class ReservationServiceTest

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

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

Author:
ehugonnet

Constructor Summary
ReservationServiceTest()
           
 
Method Summary
 void generalSetUp()
           
static void prepareDataset()
           
 void testComputeReservationStatus()
          Test of computeReservationStatus method, of class ReservationService.
 void testCreateReservation()
          Test of createReservation method, of class ReservationService.
 void testCreateReservationFromUserNotManagerOfResource()
          Test of createReservation method, of class ReservationService.
 void testCreateReservationWithResourceFromUserManagerOfResource()
          Test of createReservation method, of class ReservationService.
 void testCreateReservationWithResources()
          Test of createReservation method, of class ReservationService.
 void testDeleteReservation()
          Test of deleteReservation method, of class ReservationService.
 void testFindAllReservations()
          Test of findAllReservations method, of class ReservationService.
 void testFindAllReservationsForAllUsersAndCategoryInRange()
          Test of findAllReservationsForCategoryInRange method, of class ReservationService.
 void testFindAllReservationsForAllUsersAndResourceInRange()
          Test of findAllReservationsForCategoryInRange method, of class ReservationService.
 void testFindAllReservationsForAllUsersInRange()
          Test of findAllReservationsForValidation method, of class ReservationService.
 void testFindAllReservationsForUnknownUserAndCategoryInRange()
          Test of findAllReservationsForCategoryInRange method, of class ReservationService.
 void testFindAllReservationsForUnknownUserAndResourceInRange()
          Test of findAllReservationsForCategoryInRange method, of class ReservationService.
 void testFindAllReservationsForUnknownUserInRange()
          Test of findAllReservationsForValidation method, of class ReservationService.
 void testFindAllReservationsForUser()
          Test of findAllReservations method, of class ReservationService.
 void testFindAllReservationsForUser2AndCategoryInRange()
          Test of findAllReservationsForCategoryInRange method, of class ReservationService.
 void testFindAllReservationsForUser2AndResourceInRange()
          Test of findAllReservationsForCategoryInRange method, of class ReservationService.
 void testFindAllReservationsForUser2InRange()
          Test of findAllReservationsForValidation method, of class ReservationService.
 void testFindAllReservationsForValidation()
          Test of findAllReservationsForValidation method, of class ReservationService.
 void testGetReservation()
          Test of getReservation method, of class ReservationService.
 void testUpdateReservation()
          Test of updateReservation method, of class ReservationService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReservationServiceTest

public ReservationServiceTest()
Method Detail

prepareDataset

public static void prepareDataset()
                           throws Exception
Throws:
Exception

generalSetUp

public void generalSetUp()
                  throws Exception
Throws:
Exception

testCreateReservation

public void testCreateReservation()
Test of createReservation method, of class ReservationService.


testCreateReservationWithResources

public void testCreateReservationWithResources()
Test of createReservation method, of class ReservationService.


testCreateReservationFromUserNotManagerOfResource

public void testCreateReservationFromUserNotManagerOfResource()
Test of createReservation method, of class ReservationService.


testCreateReservationWithResourceFromUserManagerOfResource

public void testCreateReservationWithResourceFromUserManagerOfResource()
Test of createReservation method, of class ReservationService.


testComputeReservationStatus

public void testComputeReservationStatus()
Test of computeReservationStatus method, of class ReservationService.


testUpdateReservation

public void testUpdateReservation()
Test of updateReservation method, of class ReservationService.


testGetReservation

public void testGetReservation()
Test of getReservation method, of class ReservationService.


testDeleteReservation

public void testDeleteReservation()
Test of deleteReservation method, of class ReservationService.


testFindAllReservations

public void testFindAllReservations()
Test of findAllReservations method, of class ReservationService.


testFindAllReservationsForUser

public void testFindAllReservationsForUser()
Test of findAllReservations method, of class ReservationService.


testFindAllReservationsForValidation

public void testFindAllReservationsForValidation()
Test of findAllReservationsForValidation method, of class ReservationService.


testFindAllReservationsForAllUsersInRange

public void testFindAllReservationsForAllUsersInRange()
Test of findAllReservationsForValidation method, of class ReservationService.


testFindAllReservationsForUser2InRange

public void testFindAllReservationsForUser2InRange()
Test of findAllReservationsForValidation method, of class ReservationService.


testFindAllReservationsForUnknownUserInRange

public void testFindAllReservationsForUnknownUserInRange()
Test of findAllReservationsForValidation method, of class ReservationService.


testFindAllReservationsForAllUsersAndCategoryInRange

public void testFindAllReservationsForAllUsersAndCategoryInRange()
Test of findAllReservationsForCategoryInRange method, of class ReservationService.


testFindAllReservationsForUser2AndCategoryInRange

public void testFindAllReservationsForUser2AndCategoryInRange()
Test of findAllReservationsForCategoryInRange method, of class ReservationService.


testFindAllReservationsForUnknownUserAndCategoryInRange

public void testFindAllReservationsForUnknownUserAndCategoryInRange()
Test of findAllReservationsForCategoryInRange method, of class ReservationService.


testFindAllReservationsForAllUsersAndResourceInRange

public void testFindAllReservationsForAllUsersAndResourceInRange()
Test of findAllReservationsForCategoryInRange method, of class ReservationService.


testFindAllReservationsForUser2AndResourceInRange

public void testFindAllReservationsForUser2AndResourceInRange()
Test of findAllReservationsForCategoryInRange method, of class ReservationService.


testFindAllReservationsForUnknownUserAndResourceInRange

public void testFindAllReservationsForUnknownUserAndResourceInRange()
Test of findAllReservationsForCategoryInRange method, of class ReservationService.



Copyright © 2016 Silverpeas. All Rights Reserved.