@Test public void convertToDtoTest() { FavoritePlace favoritePlace = ModelUtils.getFavoritePlace(); FavoritePlaceDto expected = new FavoritePlaceDto(favoritePlace.getName(), favoritePlace.getId()); assertEquals(expected, favoritePlaceDtoMapper.convert(favoritePlace)); }
@Override public FavoritePlaceDto convert(FavoritePlace entity) { return FavoritePlaceDto.builder() .placeId(entity.getId()) .name(entity.getName()) .build(); }
FavoritePlaceDtoMapper extends AbstractConverter<FavoritePlace, FavoritePlaceDto> { @Override public FavoritePlaceDto convert(FavoritePlace entity) { return FavoritePlaceDto.builder() .placeId(entity.getId()) .name(entity.getName()) .build(); } }
FavoritePlaceDtoMapper extends AbstractConverter<FavoritePlace, FavoritePlaceDto> { @Override public FavoritePlaceDto convert(FavoritePlace entity) { return FavoritePlaceDto.builder() .placeId(entity.getId()) .name(entity.getName()) .build(); }  }
FavoritePlaceDtoMapper extends AbstractConverter<FavoritePlace, FavoritePlaceDto> { @Override public FavoritePlaceDto convert(FavoritePlace entity) { return FavoritePlaceDto.builder() .placeId(entity.getId()) .name(entity.getName()) .build(); }  @Override FavoritePlaceDto convert(FavoritePlace entity); }
FavoritePlaceDtoMapper extends AbstractConverter<FavoritePlace, FavoritePlaceDto> { @Override public FavoritePlaceDto convert(FavoritePlace entity) { return FavoritePlaceDto.builder() .placeId(entity.getId()) .name(entity.getName()) .build(); }  @Override FavoritePlaceDto convert(FavoritePlace entity);  }