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

GH-8: As a smith I need two Xpect related files in N4JS repository #9

Merged
merged 1 commit into from
Jul 4, 2017

Conversation

mmews-n4
Copy link
Contributor

@mmews-n4 mmews-n4 commented Jul 3, 2017

Task: #8

Also-by: Moritz Eysholdt moritz.eysholdt@typefox.io

Also-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
@mmews-n4 mmews-n4 requested review from jpilgrim and mor-n4 July 3, 2017 12:28
Copy link
Contributor

@mor-n4 mor-n4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jpilgrim jpilgrim requested a review from mor-n4 July 3, 2017 18:15
@jpilgrim
Copy link
Contributor

jpilgrim commented Jul 3, 2017

@mor-n4 Sorry for assigning you again, that was a mouse-glitch... and I do not now how to take it back.

@meysholdt Could you add your ok here as well?

@mmews-n4 Removed Moritz sign-off -- we can only add him as "Also-by"

/**
* Explicitly request all expected items, as they may appear in scope only on explicit request.
*/
private void adaptActual(Iterable<?> actual, N4JSExpectationCollection exp, ActualCollection act) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this customization is technically not necessary, because it should be possible to wrap the logic from adaptActual() into a Predicate and call expectation.assertEquals(null, predicate). It's important that the first parameter is null, otherwise the predicate will only be used on Expectations containing a wildcard.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way the original CommaSeparatedValuesExpectation from Xpect could be used.

@meysholdt
Copy link

ok

@mmews-n4
Copy link
Contributor Author

mmews-n4 commented Jul 4, 2017

@meysholdt Thank you for your approval! We also think that we should refactor this.

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.

4 participants