use of com.google.idea.blaze.base.bazel.BuildSystemProviderWrapper in project intellij by bazelbuild.
the class BlazeInstrumentationTestApkBuildStepIntegrationTest method setupBuildResultHelperProvider.
/**
* Setup build result helper to return BEP output with test execroot by default.
*/
@Before
public void setupBuildResultHelperProvider() throws GetArtifactsException {
mockBuildResultHelper = mock(BuildResultHelper.class);
when(mockBuildResultHelper.getBuildOutput()).thenReturn(new ParsedBepOutput(null, getExecRoot(), null, null, 0, BuildResult.SUCCESS, 0));
BuildSystemProviderWrapper buildSystem = new BuildSystemProviderWrapper(() -> getProject());
buildSystem.setBuildResultHelperSupplier(() -> mockBuildResultHelper);
registerExtension(BuildSystemProvider.EP_NAME, buildSystem);
}
use of com.google.idea.blaze.base.bazel.BuildSystemProviderWrapper in project intellij by bazelbuild.
the class FullApkBuildStepIntegrationTest method setupBuildResultHelperProvider.
/**
* Setup build result helper to return BEP output with test execroot by default.
*/
@Before
public void setupBuildResultHelperProvider() throws GetArtifactsException {
mockBuildResultHelper = mock(BuildResultHelper.class);
when(mockBuildResultHelper.getBuildOutput()).thenReturn(new ParsedBepOutput(null, getExecRoot(), null, null, 0, BuildResult.SUCCESS, 0));
BuildSystemProviderWrapper buildSystem = new BuildSystemProviderWrapper(() -> getProject());
buildSystem.setBuildResultHelperSupplier(() -> mockBuildResultHelper);
registerExtension(BuildSystemProvider.EP_NAME, buildSystem);
}
use of com.google.idea.blaze.base.bazel.BuildSystemProviderWrapper in project intellij by bazelbuild.
the class MobileInstallBuildStepIntegrationTest method setupBuildResultHelperProvider.
/**
* Setup build result helper to return BEP output with test execroot by default.
*/
@Before
public void setupBuildResultHelperProvider() throws GetArtifactsException {
mockBuildResultHelper = mock(BuildResultHelper.class);
when(mockBuildResultHelper.getBuildOutput()).thenReturn(new ParsedBepOutput(null, getExecRoot(), null, null, 0, BuildResult.SUCCESS, 0));
BuildSystemProviderWrapper buildSystem = new BuildSystemProviderWrapper(() -> getProject());
buildSystem.setBuildResultHelperSupplier(() -> mockBuildResultHelper);
registerExtension(BuildSystemProvider.EP_NAME, buildSystem);
}
Aggregations