construct method

  1. @mustCallSuper
Unit construct()

Constructs the Unit using the provided Args.

This method combines the functionality of ArgsBuilder.buildArgs and UnitBuilder.buildUnit to create the final unit for testing.

@return The constructed Unit.

Implementation

@mustCallSuper
Unit construct() {
  final args = buildArgs();
  return buildUnit(args);
}