Title: mapstruct-mapper-repo example bug · Issue #79 · mapstruct/mapstruct-examples · GitHub
Open Graph Title: mapstruct-mapper-repo example bug · Issue #79 · mapstruct/mapstruct-examples
X Title: mapstruct-mapper-repo example bug · Issue #79 · mapstruct/mapstruct-examples
Description: in testMapObjectToObject add: carDto.setSetCount(7); and Assert.assertEquals(5, carDto.getSeatCount()); test will fail Also, despite the annotation @Mapper(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE) on Ca...
Open Graph Description: in testMapObjectToObject add: carDto.setSetCount(7); and Assert.assertEquals(5, carDto.getSeatCount()); test will fail Also, despite the annotation @Mapper(nullValuePropertyMappingStrategy = NullVa...
X Description: in testMapObjectToObject add: carDto.setSetCount(7); and Assert.assertEquals(5, carDto.getSeatCount()); test will fail Also, despite the annotation @Mapper(nullValuePropertyMappingStrategy = NullVa...
Opengraph URL: https://github.com/mapstruct/mapstruct-examples/issues/79
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mapstruct-mapper-repo example bug","articleBody":"in testMapObjectToObject add:\r\ncarDto.setSetCount(7);\r\nand\r\nAssert.assertEquals(5, carDto.getSeatCount());\r\ntest will fail \r\n\r\nAlso, despite the annotation\r\n@Mapper(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)\r\non CarMapper:\r\nin testMapObjectToObject\r\nchange \r\nCar car = new Car(\"Morris\", 5, CarType.SPORTS); \r\nto\r\nCar car = new Car(\"Morris\", 5, null);\r\nand add\r\ncarDto.setType(\"anything\");\r\nand \r\nAssert.assertEquals(\"anything\", carDto.getType());\r\ntest will fail\r\n\r\nFor the latter, I tried to make sense of your recent change of \"don't overwrite target if source is null\" pull request, but there was so much discussion on what the annotation should be, I couldn't easily figure out the end result. ;o)\r\n\r\nI also can't find a test case in this git repo that covers it. Can you point me to it, if there is one?\r\nThanks!\r\n\r\n","author":{"url":"https://github.com/everettwolf","@type":"Person","name":"everettwolf"},"datePublished":"2020-04-10T16:36:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/79/mapstruct-examples/issues/79"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bc21db9e-68bd-87fa-cca8-ebd6329aa1cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FC8:1B88C8:19D7:1F6E:6992F316 |
| html-safe-nonce | 3bc2377203c2adcd4aa476592b73096919e49cc6bf291ca0211fe0323e8b9bd2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkM4OjFCODhDODoxOUQ3OjFGNkU6Njk5MkYzMTYiLCJ2aXNpdG9yX2lkIjoiODc2Njg5MjQ3NzYzNjYwNDY5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ad90e648e469ddfc3981a6e15757776d5d53b618fcbbe04a4c52ba161aa2f264 |
| hovercard-subject-tag | issue:597979581 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mapstruct/mapstruct-examples/79/issue_layout |
| twitter:image | https://opengraph.githubassets.com/863005d598f3d3276501a986ea4a5a7c16dc3acdf3ff6fd21752580ad6d5233d/mapstruct/mapstruct-examples/issues/79 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/863005d598f3d3276501a986ea4a5a7c16dc3acdf3ff6fd21752580ad6d5233d/mapstruct/mapstruct-examples/issues/79 |
| og:image:alt | in testMapObjectToObject add: carDto.setSetCount(7); and Assert.assertEquals(5, carDto.getSeatCount()); test will fail Also, despite the annotation @Mapper(nullValuePropertyMappingStrategy = NullVa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | everettwolf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 348cc0594c4976eb4050dc9547ecf65057ee89a2b7ed0652b983b9b539f57145 |
| turbo-cache-control | no-preview |
| go-import | github.com/mapstruct/mapstruct-examples git https://github.com/mapstruct/mapstruct-examples.git |
| octolytics-dimension-user_id | 4086779 |
| octolytics-dimension-user_login | mapstruct |
| octolytics-dimension-repository_id | 11235473 |
| octolytics-dimension-repository_nwo | mapstruct/mapstruct-examples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11235473 |
| octolytics-dimension-repository_network_root_nwo | mapstruct/mapstruct-examples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ce72317238c729e85014e1d867fd30d09b7f94ba |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width