1.

Explain Junit. What are annotations?

Answer»

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.


Discussion

No Comment Found