Package siia.booking.domain.notifications

Examples of siia.booking.domain.notifications.TripNotification


    @Splitter
    public List<TripNotification> generateTripNotificationsFrom(FlightNotification flightNotification,
        @Header("affectedTrips") List<Trip> affectedTrips) {
        List<TripNotification> notifications = new ArrayList<TripNotification>(affectedTrips.size());
        for (Trip trip : affectedTrips) {
            notifications.add(new TripNotification(trip, flightNotification.getMessage()));
        }
        return notifications;
    }
View Full Code Here


    @Autowired
    SmsNotifiable smsNotifier;

    @Test
    public void notificationShouldArriveAtSmsAdapter() throws Exception {
        TripNotification notification = mock(TripNotification.class);
        Message tripNotificationMessage =
                MessageBuilder
                        .withPayload(notification)
                        .build();
        CountDownLatch notifierInvoked = new CountDownLatch(1);
View Full Code Here

    @Autowired
    SmsNotifiable smsNotifier;

    @Test
    public void notificationShouldArriveAtSmsAdapter() throws Exception {
        TripNotification notification = mock(TripNotification.class);
        Message tripNotificationMessage =
                MessageBuilder
                        .withPayload(notification)
                        .build();
        CountDownLatch notifierInvoked = new CountDownLatch(1);
View Full Code Here

TOP

Related Classes of siia.booking.domain.notifications.TripNotification

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.