Skip to content

+tck #236 example subscriber whitebox tested, and whitebox fixed #244

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

Merged

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Mar 14, 2015

Adds better example on using SubscriberWhiteboxVerification - it now explains how you would use it with your impl, thanks @purplefox for pointing out the need for clarification here in #236!

This PR also makes us use the whitebox to test the example subscriber. This found a bug in the new tests introduced during https://github.com/reactive-streams/reactive-streams-jvm/pull/209/files as it accidentally subscribed twice (whitebox's Stage is subscribing the sub to the pub during creation). Fixed tests, and improved docs on these methods.

Resolves #236

@ktoso
Copy link
Contributor Author

ktoso commented Mar 14, 2015

// cc @viktorklang

return signalNext(element);
}

public T signalNext(T element) throws InterruptedException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Public?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can be private, yeap

@viktorklang
Copy link
Contributor

Aside from comments, 👍!

@ktoso ktoso force-pushed the wip-whitebox-better-example branch from a7878e2 to ae354a8 Compare March 15, 2015 16:40
@ktoso
Copy link
Contributor Author

ktoso commented Mar 15, 2015

Comments addressed 👍

@viktorklang
Copy link
Contributor

@reactive-streams/contributors this is a documentation fix and bugfix for the TCK, will merge in 48h if no objections have been made

@benjchristensen
Copy link
Contributor

Since this is all in the TCK I'm assuming it's fixing conformance with the spec, so I'm okay with it.

@ktoso ktoso force-pushed the wip-whitebox-better-example branch from ae354a8 to 99c0cad Compare March 18, 2015 23:10
viktorklang added a commit that referenced this pull request Mar 20, 2015
+tck #236 example subscriber whitebox tested, and whitebox fixed
@viktorklang viktorklang merged commit bca27f5 into reactive-streams:master Mar 20, 2015
@viktorklang viktorklang deleted the wip-whitebox-better-example branch March 20, 2015 20:34
@viktorklang viktorklang modified the milestone: 1.0.0.RC4 Mar 25, 2015
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.

Clarification on Whitebox subscriber verification
3 participants