5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

Aspire     Javanista to Java Master     Javanista to Java Master Track 1: Unit Testing
Parameterized tests in JUnit help developers save time by running the same tests repeatedly, using only different inputs, and getting different results. The focus of this course is on scaling test case executions using repeated and parameterized tests.
Start by setting a particular test case to run multiple times using the RepeatedTest annotation. Next, move on to defining test cases that can accept parameters. Then, look into different ways in which the parameters can be fed into your test case - from hard-coded values defined in your test class to CSV files and method invocations.
Finally, learn how to build a specialized class to pre-process your parameters before being fed into test cases.
Upon completion, you'll know how to conduct repeated executions of JUnit test cases with or without parameters.

Objectives

Unit Testing: Parameterized JUnit Tests

  • discover the key concepts covered in this course
  • apply the RepeatedTest annotation to run a test case multiple times
  • use the ValueSource annotation to run a parameterized test case several times for a set of pre-defined parameters
  • set parameterized tests to run for null and empty parameter values as well as CSV values
  • define a class to apply a transformation to parameters before they are fed into a test case
  • summarize the key concepts covered in this course