Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add full name restrictions/assertions to members API #205

Merged
merged 4 commits into from Jul 29, 2019
Merged

add full name restrictions/assertions to members API #205

merged 4 commits into from Jul 29, 2019

Conversation

hankem
Copy link
Member

@hankem hankem commented Jul 22, 2019

  • members().that().have, doNotHaveFullName
  • members().that().haveFullNameNotMatching
  • members().should().have, notHaveFullName
  • members().should().haveFullNameNotMatching

@codecholeric
Copy link
Collaborator

Thanks for the contribution 😃
I've added some minor review changes, can you cross review? It's just some stuff like Javadoc or the removal of the generic return type parameter (that I had originally introduced for HasName myself 😉)
If you give me thumbs up, I'll merge

@hankem
Copy link
Member Author

hankem commented Jul 29, 2019

Sure, thanks!

hankem and others added 4 commits July 29, 2019 17:39
introduced with efbbc32 after rebase

Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
- Added some Javadoc (since I'm not sure if 'full name' can be immediately understood by every user)
- Removed the generic return type from the predicates in HasName and HasName.AndFullName since the caller should be responsible to map to the subtype (or it would have to be consistently changed in many other places)
- Tried to make some tests more decisive by matching at least some element of the passed collection
- Unrelated: Added HasName.AndFullName.Functions.GET_FULL_NAME to be consistent with HasName

Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
@codecholeric codecholeric merged commit d8c9e90 into TNG:master Jul 29, 2019
@hankem hankem deleted the fullName branch July 29, 2019 19:11
codecholeric added a commit that referenced this pull request Feb 21, 2021
add full name restrictions/assertions to members API
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.

None yet

2 participants