-
Notifications
You must be signed in to change notification settings - Fork 56
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
Use JUnit @Rule instead of (as well as) ClientDriverUnitTest #22
Comments
@mjg123 - take a look at that first attempt and let me know what you think. c52387d#diff-1 has examples of success and failure as actual JUnit tests. |
I know it's closed now, but I'm using this for the first time. I feel that if .expect() is correct for the rule then .expect should be the method on the clientdriver as well (currently is .addExpectation() ) |
I wanted to be careful not to confuse with a method name that potentially indicates overwriting the expectation. ExpectedException can only expect one exception. Expecting one over the top of another expects the last one. |
Have now corrected the method name to what I said it was rather than what it actually was! |
Is this possible?
The text was updated successfully, but these errors were encountered: