fixtureForEach<T extends Fixture> function

T fixtureForEach<T extends Fixture>(
  1. T fixture
)

Used to register a Fixture to be executed before and after each test method in the group.

Arguments

  • T fixture - the fixture instance to be registered

Returns

The instance of the fixture passed in, for convenience.

Implementation

T fixtureForEach<T extends Fixture>(T fixture) {
  setUp(fixture.before);
  tearDown(fixture.after);
  return fixture;
}