Add alias for shouldBeEqualToUsingFields and disallow specifying NO fields
See original GitHub issueOccasionally, I have to assert value-equality of Java class instances that do not implement equals()
with kotlintest (also see this). For these cases, it would be nice to have a matcher that iterates over all fields via reflection (recursively) and asserts value equality for each.
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Need field alias for re-use holder class - Kotlin Discussions
I'm an Android developer, enjoy coding with Kotlin. There are many classes that have same fields count, no behavior, no state.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sschuberth have a look at #1208 that will fix the issue
Also, it’s only available as an extension function, not as an infix operator.