This is the code repository for Apache Spark with Learn Java Unit Testing with JUnit 5 in 20 Steps , published by Packt. It contains all the supporting project files necessary to work through the video course from start to finish.
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
- Write clean unit tests with the JUnit framework
- Use JUnit annotations @Test, @Before, @After, @AfterClass, @BeforeClass, @Suite
- Use JUnit assert methods
- Write unit tests for exceptions and performance
To fully benefit from the coverage included in this course, you will need:
This course has the following software requirements:
N/A