This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Better LDUser equality #96
Comments
Thanks for reaching out @igillis! Would an |
Yep, that would work. Happy to put up a PR if you want -- not sure what your process looks like. |
@igillis we'll do it. I'll have it on your desk by Monday morning at the latest. |
Awesome :) |
@igillis We just release https://github.com/launchdarkly/java-client/releases/tag/2.2.6 which addresses this issue. |
nice, thanks for the quick turnaround! |
eli-darkly
added a commit
that referenced
this issue
Sep 4, 2018
preserve prerequisite flag value in event even if flag was off
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a class that wraps LDClient usage. I want to be able to write tests for this class that mock out
LDUserInterface::boolVariation
andLDUserInterface::allFlags
using Mockito. However, there's no way to set up an argument matcher against LDUser because a) it doesn't implement a useful equals method and b) it doesn't expose any of its state.Sample code:
The text was updated successfully, but these errors were encountered: