What are the advantages and disadvantages of writing JUnit tests?
• Advantages:
- Keeps your code organized - each test corresponds to different building
blocks of your program - You can debug your code locally and find which part of your program is
not working - Provides documentation that your program actually works
- Can reduce the amount of test code you need to write because you can
reuse code
• Disadvantages: - Hard to use for higher-level testing