@Before: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 9: Line 9:
=Overview=
=Overview=


A method annotated with <code>@Before</code> is executed before '''all''' methods annotated with @Test in a JUnit test class.
A method annotated with <code>@Before</code> is executed before '''all''' methods annotated with @Test in a JUnit test class, every time the test method is executed.

Latest revision as of 19:48, 11 February 2020

External

Internal

Overview

A method annotated with @Before is executed before all methods annotated with @Test in a JUnit test class, every time the test method is executed.