Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What annotation do you use for a parameterized test?
Think about which annotation indicates a test runs multiple times.
Name a source annotation that can provide parameters for a test.
Consider what type of source can provide single arrays of values.
What does @ParameterizedTest do in JUnit?
Remember how parameterization allows multiple values.
True or False: Parameterized tests are only useful for numerical data.
Consider the applications of parameterized tests beyond just integers.
Create a parameterized test using @CsvSource to check for valid email formats.
Consider how you would define valid and invalid email scenarios.
Design a parameterized test for a method that checks for palindromes with a variety of inputs.
Think about what constitutes a palindrome, and how string manipulation can validate it.
4 more questions in this section. Enroll free to practise them all.
Enroll free