It is a unit testing framework, which was introduced by Apache. This framework is based on Java.

 

Following are JUnit Annotations:

  • @Test: This annotation tells the system that any method that is annotated as @Test is test method. You can have multiple test methods in one script.
  • @Before: This shows the system that this method will be executed every time before the test method.
  • @After: This method tells the system that this method will get performed every time after the test method.
  • @BeforeClass: This method determines the system that this method will get performed once before any of the test methods.
  • @AfterClass: This method determines the system that this method will get performed once after the test method.
  • @Ignore: It shows the system that this method will not be implemented.

Suggest An Answer

No suggestions avaliable!