Appendix B. Brief JUnit 3.8 tutorial
The name of the class should indicate that it’s a test—for example, have the class name start with Test. | |
We extend from JUnit’s TestCase class. | |
The instance variables set up in the setUp() method represent the common fixture for the test methods. | |
We can prepare a known state for the test by overriding the protected ... |
Get Test Driven now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.