Skip to content

Add shortcut for present optionals with equalTo matcher#55

Merged
caesar-ralf merged 1 commit intospotify:masterfrom
MM53:feature/optional-equals-shortcut
Dec 7, 2022
Merged

Add shortcut for present optionals with equalTo matcher#55
caesar-ralf merged 1 commit intospotify:masterfrom
MM53:feature/optional-equals-shortcut

Conversation

@MM53
Copy link
Copy Markdown

@MM53 MM53 commented Nov 18, 2022

We often use optionalWithValue(equalTo(value)) in our tests. To simplify this Matcher it would be great to have a shortcut like the is Matcher of hamcrest-core provides, which automatically adds the equalTo if a value is supplied instead of a Matcher.

@caesar-ralf caesar-ralf merged commit 9969820 into spotify:master Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants