Question: Match the JUnit annotations with the description Question 2 2 options: 1 2 3 4 5 6 This annotation can be used if you want
Match the JUnit annotations with the description
Question options:
This annotation can be used if you want to ignore some statements during test execution for eg disabling some test cases during test execution.
This annotation is a replacement of org.junit.TestCase which indicates that public void method to which it is attached can be executed as a test Case.
This annotation is used if you want to execute some statement such as preconditions before each test case.
This annotation can be used if you want to execute some statements after each Test Case for eg resetting variables, deleting temporary files variables, etc.
This annotation is used if you want to execute some statements before all the test cases for eg test connection must be executed
This annotation can be used if you want to execute some statements after all test cases for eg Releasing resources after executing all test cases.
@Test
@Before
@BeforeClass
@After
@AfterClass
@Ignores
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
