-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Method containsValue() from this class should apply the same logic as with(String, Object) before calling this.attrs.containsValue(value)
This is because currently this test
AttributeUpdates attr = new AttributeUpdates() .with("key", "someString");
MatcherAssert.assertThat(
attr.containsValue("someString),
Matchers.is(Boolean.TRUE)
);
fails. In order for the containsValue() to return true, the client has to wrap the original value in an AttributeValue and so on (like it is wrapped inside with(String, Object.
After the fix, unit test AttributeUpdatesTest.containsValue() should also be fixed (currently it does the above mentioned "hack" to work).
Reactions are currently unavailable