Appendix A. Brief JUnit 4 tutorial
We get assertion methods from JUnit’s Assert class through a static import. | |
The name of the class should indicate that it’s a test—for example, have the class name start with Test. | |
The instance variables set up in the @Before method represent the common fixture for the test methods. | |
We can prepare a known state ... |
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.