applyInPlaceSetup static method

void applyInPlaceSetup(
  1. EnsembleTestContext ctx
)

Implementation

static void applyInPlaceSetup(EnsembleTestContext ctx) {
  final config = Ensemble().getConfig();
  if (config != null) {
    applyYamlTestBootstrap(config, ctx.setup);
  }
  ctx.applyRuntimeEnv();
  for (final entry in ctx.testCase.mocks.apis.entries) {
    ctx.mockApiProvider.setMock(entry.key, entry.value);
  }
  if (config != null) {
    installHttpMockProvider(config, ctx.mockApiProvider);
  }
}