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 22 options:
123456
This annotation can be used if you want to ignore some statements during test execution for e.g. disabling some test cases during test execution.
123456
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.
123456
This annotation is used if you want to execute some statement such as preconditions before each test case.
123456
This annotation can be used if you want to execute some statements after each Test Case for e.g resetting variables, deleting temporary files ,variables, etc.
123456
This annotation is used if you want to execute some statements before all the test cases for e.g. test connection must be executed
123456
This annotation can be used if you want to execute some statements after all test cases for e.g. Releasing resources after executing all test cases.
1.
@Test
2.
@Before
3.
@BeforeClass
4.
@After
5.
@AfterClass
6.
@Ignores

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!