question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add alias for shouldBeEqualToUsingFields and disallow specifying NO fields

See original GitHub issue

Occasionally, 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:closed
  • Created 4 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
ashishkujoycommented, Feb 9, 2020

@sschuberth have a look at #1208 that will fix the issue

1reaction
sschuberthcommented, Jan 17, 2020

Also, it’s only available as an extension function, not as an infix operator.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found