Complete the code to use @CsvSource with two values.
@ParameterizedTest
@CsvSource([1])
void testSum(int a, int b) {
assertEquals(a + b, a + b);
}Complete the code to add multiple CSV lines in @CsvSource.
@ParameterizedTest
@CsvSource([1])
void testMultiply(int a, int b, int expected) {
assertEquals(expected, a * b);
}Fix the error in the @CsvSource annotation to correctly pass three test cases.
@ParameterizedTest
@CsvSource([1])
void testConcat(String a, String b, String expected) {
assertEquals(expected, a + b);
}Fill both blanks to correctly use @CsvSource with mixed data types.
@ParameterizedTest @CsvSource([1]) void testMixedTypes(int id, String name, boolean active) { assertTrue(active); assertNotNull(name); assertTrue(id > 0); }
Fill all three blanks to create a @CsvSource with three test cases and correct syntax.
@ParameterizedTest
@CsvSource([1])
void testDivide(int numerator, int denominator, int expected) {
assertEquals(expected, numerator / denominator);
}