Practical Unit Testing with JUnit and Mockito by Tomek Kaczanowski

Practical Unit Testing with JUnit and Mockito by Tomek Kaczanowski

Author:Tomek Kaczanowski [Kaczanowski, Tomek]
Language: eng
Format: epub, mobi, pdf


This test should be rerun once.

This test should be rerun twice.

This test should not be rerun, because it is not marked with the @RetryTest annotation.

6.15.9. Make an ID Generator Bulletproof

As an additional exercise, please provide the implementation for an ID generator like that discussed in Section 6.10, that will pass the tests shown in Listing 6.33.

* * *

[51] In this case client is someone or something that calls your code, not necessarily a person.

[52] See http://en.wikipedia.org/wiki/Boundary-value_analysis and http://en.wikipedia.org/wiki/Off-by-one_error for more information.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.