Ans. When executing tests it is common that multiple tests need similar objects to be created before they can run. @before specifies a method that provide that initialization for the set of Unit Tests.

Help us improve. Please let us know the company, where you were asked this question :