Skip to content

Bug in AttributeUpdates.containsValue(Object)Β #80

@amihaiemil

Description

@amihaiemil

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions