test_class.declarator: bookingService
test_class.modifier: private
test_class.original_string: private BookingService bookingService;
test_class.type: BookingService
test_class.var_name: bookingService
test_class.declarator: mockEvent
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Event<NewReservationEvent> mockEvent;
test_class.type: Event<NewReservationEvent>
test_class.var_name: mockEvent
test_class.declarator: mockResEvent
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Event<ReservationStatusChangeEvent> mockResEvent;
test_class.type: Event<ReservationStatusChangeEvent>
test_class.var_name: mockResEvent
test_class.file: booking/src/test/java/org/koenighotze/jee7hotel/booking/business/BookingServiceTest.java
test_class.identifier: BookingServiceTest
test_class.superclass: extends AbstractBasePersistenceTest
test_case.body: @Test
      public void get_all_reservations_returns_the_reservations() {
          List<Reservation> allReservations = bookingService.getAllReservations();
          assertThat(allReservations).isNotNull();
      }
test_case.class_method_signature: BookingServiceTest.get_all_reservations_returns_the_reservations()
test_case.full_signature: @Test public void get_all_reservations_returns_the_reservations()
test_case.identifier: get_all_reservations_returns_the_reservations
test_case.invocations: getAllReservations isNotNull assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void get_all_reservations_returns_the_reservations()
focal_class.declarator: LOGGER = Logger.getLogger(BookingService.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger.getLogger(BookingService.class.getName());
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: reservationCostCalculator
focal_class.modifier: private
focal_class.original_string: private ReservationCostCalculator reservationCostCalculator;
focal_class.type: ReservationCostCalculator
focal_class.var_name: reservationCostCalculator
focal_class.declarator: em
focal_class.modifier: private
focal_class.original_string: private EntityManager em;
focal_class.type: EntityManager
focal_class.var_name: em
focal_class.declarator: reservationEvents
focal_class.modifier: private
focal_class.original_string: private Event<NewReservationEvent> reservationEvents;
focal_class.type: Event<NewReservationEvent>
focal_class.var_name: reservationEvents
focal_class.declarator: reservationStateChangeEvents
focal_class.modifier: private
focal_class.original_string: private Event<ReservationStatusChangeEvent> reservationStateChangeEvents;
focal_class.type: Event<ReservationStatusChangeEvent>
focal_class.var_name: reservationStateChangeEvents
focal_class.file: booking/src/main/java/org/koenighotze/jee7hotel/booking/business/BookingService.java
focal_class.identifier: BookingService
focal_class.class_method_signature: BookingService.BookingService()
focal_class.full_signature: public  BookingService()
focal_class.identifier: BookingService
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  BookingService()
focal_class.class_method_signature: BookingService.BookingService(Event<NewReservationEvent> reservationEvents, Event<ReservationStatusChangeEvent> reservationStateChangeEvents, ReservationCostCalculator reservationCostCalculator)
focal_class.full_signature: @Inject public  BookingService(Event<NewReservationEvent> reservationEvents, Event<ReservationStatusChangeEvent> reservationStateChangeEvents, ReservationCostCalculator reservationCostCalculator)
focal_class.identifier: BookingService
focal_class.modifiers: @Inject public
focal_class.parameters: (Event<NewReservationEvent> reservationEvents, Event<ReservationStatusChangeEvent> reservationStateChangeEvents, ReservationCostCalculator reservationCostCalculator)
focal_class.signature:  BookingService(Event<NewReservationEvent> reservationEvents, Event<ReservationStatusChangeEvent> reservationStateChangeEvents, ReservationCostCalculator reservationCostCalculator)
focal_class.class_method_signature: BookingService.setReservationStateChangeEvents(Event<ReservationStatusChangeEvent> reservationStateChangeEvents)
focal_class.full_signature: public void setReservationStateChangeEvents(Event<ReservationStatusChangeEvent> reservationStateChangeEvents)
focal_class.identifier: setReservationStateChangeEvents
focal_class.modifiers: public
focal_class.parameters: (Event<ReservationStatusChangeEvent> reservationStateChangeEvents)
focal_class.return: void
focal_class.signature: void setReservationStateChangeEvents(Event<ReservationStatusChangeEvent> reservationStateChangeEvents)
focal_class.class_method_signature: BookingService.setReservationEvents(Event<NewReservationEvent> reservationEvents)
focal_class.full_signature: public void setReservationEvents(Event<NewReservationEvent> reservationEvents)
focal_class.identifier: setReservationEvents
focal_class.modifiers: public
focal_class.parameters: (Event<NewReservationEvent> reservationEvents)
focal_class.return: void
focal_class.signature: void setReservationEvents(Event<NewReservationEvent> reservationEvents)
focal_class.class_method_signature: BookingService.cancelReservation(String reservationNumber)
focal_class.full_signature: public boolean cancelReservation(String reservationNumber)
focal_class.identifier: cancelReservation
focal_class.modifiers: public
focal_class.parameters: (String reservationNumber)
focal_class.return: boolean
focal_class.signature: boolean cancelReservation(String reservationNumber)
focal_class.class_method_signature: BookingService.newReservationNumber()
focal_class.full_signature: public String newReservationNumber()
focal_class.identifier: newReservationNumber
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String newReservationNumber()
focal_class.class_method_signature: BookingService.findReservationForGuest(String guestId)
focal_class.full_signature: public List<Reservation> findReservationForGuest(String guestId)
focal_class.identifier: findReservationForGuest
focal_class.modifiers: public
focal_class.parameters: (String guestId)
focal_class.return: List<Reservation>
focal_class.signature: List<Reservation> findReservationForGuest(String guestId)
focal_class.class_method_signature: BookingService.getAllReservations()
focal_class.full_signature: public List<Reservation> getAllReservations()
focal_class.identifier: getAllReservations
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Reservation>
focal_class.signature: List<Reservation> getAllReservations()
focal_class.class_method_signature: BookingService.getReservation(Long id)
focal_class.full_signature: public Reservation getReservation(Long id)
focal_class.identifier: getReservation
focal_class.modifiers: public
focal_class.parameters: (Long id)
focal_class.return: Reservation
focal_class.signature: Reservation getReservation(Long id)
focal_class.class_method_signature: BookingService.bookRoom(String guestId, String roomId, LocalDate checkin, LocalDate checkout)
focal_class.full_signature: public Reservation bookRoom(String guestId, String roomId, LocalDate checkin, LocalDate checkout)
focal_class.identifier: bookRoom
focal_class.modifiers: public
focal_class.parameters: (String guestId, String roomId, LocalDate checkin, LocalDate checkout)
focal_class.return: Reservation
focal_class.signature: Reservation bookRoom(String guestId, String roomId, LocalDate checkin, LocalDate checkout)
focal_class.class_method_signature: BookingService.setEntityManager(EntityManager entityManager)
focal_class.full_signature: @PersistenceContext public void setEntityManager(EntityManager entityManager)
focal_class.identifier: setEntityManager
focal_class.modifiers: @PersistenceContext public
focal_class.parameters: (EntityManager entityManager)
focal_class.return: void
focal_class.signature: void setEntityManager(EntityManager entityManager)
focal_class.class_method_signature: BookingService.findReservationByNumber(String reservationNumber)
focal_class.full_signature: public Optional<Reservation> findReservationByNumber(String reservationNumber)
focal_class.identifier: findReservationByNumber
focal_class.modifiers: public
focal_class.parameters: (String reservationNumber)
focal_class.return: Optional<Reservation>
focal_class.signature: Optional<Reservation> findReservationByNumber(String reservationNumber)
focal_class.class_method_signature: BookingService.reopenReservation(String reservationNumber)
focal_class.full_signature: public void reopenReservation(String reservationNumber)
focal_class.identifier: reopenReservation
focal_class.modifiers: public
focal_class.parameters: (String reservationNumber)
focal_class.return: void
focal_class.signature: void reopenReservation(String reservationNumber)
focal_class.class_method_signature: BookingService.confirmReservation(String reservationNumber)
focal_class.full_signature: public void confirmReservation(String reservationNumber)
focal_class.identifier: confirmReservation
focal_class.modifiers: public
focal_class.parameters: (String reservationNumber)
focal_class.return: void
focal_class.signature: void confirmReservation(String reservationNumber)
focal_method.body: public List<Reservation> getAllReservations() {
          CriteriaQuery<Reservation> cq = this.em.getCriteriaBuilder().createQuery(Reservation.class);
          cq.select(cq.from(Reservation.class));
          return new ArrayList<>(this.em.createQuery(cq).getResultList());
      }
focal_method.class_method_signature: BookingService.getAllReservations()
focal_method.full_signature: public List<Reservation> getAllReservations()
focal_method.identifier: getAllReservations
focal_method.invocations: createQuery getCriteriaBuilder select from getResultList createQuery
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<Reservation>
focal_method.signature: List<Reservation> getAllReservations()