/*
 * Copyright 2013 Sébastien Lesaint
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package fr.javatronic.damapping.test.fullhardcoded.mapping;

import fr.javatronic.damapping.annotation.Mapper;
import fr.javatronic.damapping.test.fullhardcoded.dto.HotelDto;
import fr.javatronic.damapping.test.fullhardcoded.service.Hotel;

import javax.annotation.Nullable;
import com.google.common.base.Function;
import com.google.common.collect.FluentIterable;

/**
 * HotelToHotelDto -
 *
 * @author Sébastien Lesaint
 */
@Mapper
public class HotelToHotelDto implements Function<Hotel, HotelDto> {
  private FloorToFloorDtoMapper floorToFloorDtoMapper = new FloorToFloorDtoMapperImpl();

  @Nullable
  @Override
  public HotelDto apply(@Nullable Hotel hotel) {
    return new HotelDto(
        FluentIterable.from(hotel.getFloors()).transform(floorToFloorDtoMapper).toList()
    );
  }
}

@@ -873,48 +873,8 @@
 le;%0A
-import com.google.common.base.Function;%0A
 impo
@@ -943,16 +943,78 @@
 telDto -
+ This mappper uses the implicite mapper method functionnnality
 %0A *%0A * @
@@ -1082,45 +1082,8 @@
 lDto
- implements Function%3CHotel, HotelDto%3E
  %7B%0A 
@@ -1187,20 +1187,8 @@
 ble%0A
-  @Override%0A
   pu

add unit test in use-mapper module for implicite mapper method