Overview of this book
JUnit is a unit testing framework for the Java programming language.
JUnit has been important in the development of test-driven development and is one of a family of unit testing frameworks which is collectively known as xUnit frameworks.
In this beginners tutorial on JUnit, you will learn how to
• Create a new project for JUnit tests
• Create, run and debug JUnit tests
• Write good unit tests
? Use assert methods
? Use basic JUnit annotations - @Test, @Before, @After, @AfterClass, @BeforeClass, @Suite
? Test performance and exceptions in unit tests
? Write parameterized tests
? Adhere to JUnit best practices
• Use Eclipse to write and run JUnit tests