Complete the code to declare a JUnit test class named correctly.
public class [1] { }
The test class should be named with the class name followed by Test suffix, e.g., CalculatorTest.
Complete the code to import the JUnit 5 test annotation.
import org.junit.jupiter.api.[1];
The correct annotation to mark a test method in JUnit 5 is @Test, so you import Test.
Fix the error in the test class declaration by completing the class name correctly.
public class [1] { @Test void exampleTest() { // test code } }
The test class name should end with 'Test' and start with a capital letter, so 'ExampleTest' is correct.
Fill both blanks to complete a JUnit 5 test class with a test method named correctly.
public class [1] { @[2] void shouldAddNumbers() { // test code } }
The class name should end with 'Test' and the method should be annotated with '@Test' to mark it as a test method.
Fill all three blanks to complete a JUnit 5 test class with a test method and proper import.
import org.junit.jupiter.api.[1]; public class [2] { @[3] void testMultiply() { // test code } }
Import the '@Test' annotation, name the class properly ending with 'Test', and annotate the test method with '@Test'.