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

Confusing statement concerning stubbing #51

Closed
sdzivanovich opened this issue Aug 25, 2015 · 1 comment
Closed

Confusing statement concerning stubbing #51

sdzivanovich opened this issue Aug 25, 2015 · 1 comment

Comments

@sdzivanovich
Copy link
Contributor

Section 14.2: "Note that we can even stub methods that don’t exist, thus allowing us to not only test
classes that have errors."

This doesn't make much sense in the Java world of things, since you can only stub methods that are at least declared on the class/interface you're mocking. Maybe you can incorporate a Ruby example

@laboon
Copy link
Owner

laboon commented Aug 25, 2015

Ugh, yup, that's not possible in Java (at least w/ Junit), although definitely with Ruby. I'll just mention "in other languages"

@laboon laboon closed this as completed in 76c19e4 Aug 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

No branches or pull requests

2 participants