1.

Explain The Execution Procedure Of The Juint Test Api Methods?

Answer»

Following is how the JUnit execution PROCEDURE works −

  • First of all METHOD annotated as @BeforeClass EXECUTE only once.
  • Lastly, the method annotated as @AfterClass EXECUTES only once.
  • Method annotated as @Before executes for each test case but before executing the test case.
  • Method annotated as @After executes for each test case but after the execution of test case.
  • In between method annotated as @Before and method annotated as @After each test case executes.

Following is how the JUnit execution procedure works −



Discussion

No Comment Found