private List<BookingType> bookingTypes;
public BookingTypeServiceMockImpl() {
bookingTypeMap = new HashMap<Long, BookingType>();
bookingTypeMap.put(TYPE_ID_FLIGHT, new BookingType(TYPE_ID_FLIGHT, "flight"));
bookingTypeMap.put(TYPE_ID_CRUISE, new BookingType(TYPE_ID_CRUISE, "cruise"));
bookingTypeMap.put(TYPE_ID_HOTEL, new BookingType(TYPE_ID_HOTEL, "hotel"));
bookingTypeMap.put(TYPE_ID_RESTAURANT, new BookingType(TYPE_ID_RESTAURANT, "restaurant"));
bookingTypeMap.put(TYPE_ID_RENTAL_CAR, new BookingType(TYPE_ID_RENTAL_CAR, "rental-car"));
bookingTypeMap.put(TYPE_ID_TRAIN, new BookingType(TYPE_ID_TRAIN, "train"));
bookingTypes = new ArrayList<BookingType>();
Set<Entry<Long, BookingType>> entrySet = bookingTypeMap.entrySet();
for (Entry<Long, BookingType> mapEntry : entrySet) {
BookingType bookingType = mapEntry.getValue();
bookingTypes.add(bookingType);
}
}