@Test public void convertTest() { TipsAndTricksComment expected = ModelUtils.getTipsAndTricksComment(); TipsAndTricksComment actual = mapper.convert(ModelUtils.getAddTipsAndTricksCommentDtoRequest()); actual.setId(1L); assertEquals(expected, actual); }
@Override protected TipsAndTricksComment convert(AddTipsAndTricksCommentDtoRequest addTipsAndTricksCommentDtoRequest) { return TipsAndTricksComment.builder() .text(addTipsAndTricksCommentDtoRequest.getText()) .build(); }
AddTipsAndTricksCommentDtoRequestMapper extends AbstractConverter<AddTipsAndTricksCommentDtoRequest, TipsAndTricksComment> { @Override protected TipsAndTricksComment convert(AddTipsAndTricksCommentDtoRequest addTipsAndTricksCommentDtoRequest) { return TipsAndTricksComment.builder() .text(addTipsAndTricksCommentDtoRequest.getText()) .build(); } }
AddTipsAndTricksCommentDtoRequestMapper extends AbstractConverter<AddTipsAndTricksCommentDtoRequest, TipsAndTricksComment> { @Override protected TipsAndTricksComment convert(AddTipsAndTricksCommentDtoRequest addTipsAndTricksCommentDtoRequest) { return TipsAndTricksComment.builder() .text(addTipsAndTricksCommentDtoRequest.getText()) .build(); }  }
AddTipsAndTricksCommentDtoRequestMapper extends AbstractConverter<AddTipsAndTricksCommentDtoRequest, TipsAndTricksComment> { @Override protected TipsAndTricksComment convert(AddTipsAndTricksCommentDtoRequest addTipsAndTricksCommentDtoRequest) { return TipsAndTricksComment.builder() .text(addTipsAndTricksCommentDtoRequest.getText()) .build(); }   }
AddTipsAndTricksCommentDtoRequestMapper extends AbstractConverter<AddTipsAndTricksCommentDtoRequest, TipsAndTricksComment> { @Override protected TipsAndTricksComment convert(AddTipsAndTricksCommentDtoRequest addTipsAndTricksCommentDtoRequest) { return TipsAndTricksComment.builder() .text(addTipsAndTricksCommentDtoRequest.getText()) .build(); }    }