@Test public void convertTest() { User author = ModelUtils.getUser(); EcoNewsAuthorDto expected = new EcoNewsAuthorDto(author.getId(), author.getName()); assertEquals(expected, ecoNewsAuthorDtoMapper.convert(author)); }
@Override public EcoNewsAuthorDto convert(User author) { return new EcoNewsAuthorDto(author.getId(), author.getName()); }
EcoNewsAuthorDtoMapper extends AbstractConverter<User, EcoNewsAuthorDto> { @Override public EcoNewsAuthorDto convert(User author) { return new EcoNewsAuthorDto(author.getId(), author.getName()); } }
EcoNewsAuthorDtoMapper extends AbstractConverter<User, EcoNewsAuthorDto> { @Override public EcoNewsAuthorDto convert(User author) { return new EcoNewsAuthorDto(author.getId(), author.getName()); }  }
EcoNewsAuthorDtoMapper extends AbstractConverter<User, EcoNewsAuthorDto> { @Override public EcoNewsAuthorDto convert(User author) { return new EcoNewsAuthorDto(author.getId(), author.getName()); }  @Override EcoNewsAuthorDto convert(User author); }
EcoNewsAuthorDtoMapper extends AbstractConverter<User, EcoNewsAuthorDto> { @Override public EcoNewsAuthorDto convert(User author) { return new EcoNewsAuthorDto(author.getId(), author.getName()); }  @Override EcoNewsAuthorDto convert(User author);  }