use of com.google.idea.blaze.base.command.buildresult.BuildResultHelperProvider 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));
registerExtension(BuildResultHelperProvider.EP_NAME, new BuildResultHelperProvider() {
@Override
public Optional<BuildResultHelper> doCreate(Project project, BlazeInfo blazeInfo) {
return Optional.of(mockBuildResultHelper);
}
@Override
public Optional<BuildResultHelper> doCreateForLocalBuild(Project project) {
return Optional.of(mockBuildResultHelper);
}
});
}
use of com.google.idea.blaze.base.command.buildresult.BuildResultHelperProvider 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));
registerExtension(BuildResultHelperProvider.EP_NAME, new BuildResultHelperProvider() {
@Override
public Optional<BuildResultHelper> doCreate(Project project, BlazeInfo blazeInfo) {
return Optional.of(mockBuildResultHelper);
}
@Override
public Optional<BuildResultHelper> doCreateForLocalBuild(Project project) {
return Optional.of(mockBuildResultHelper);
}
});
}
use of com.google.idea.blaze.base.command.buildresult.BuildResultHelperProvider 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));
registerExtension(BuildResultHelperProvider.EP_NAME, new BuildResultHelperProvider() {
@Override
public Optional<BuildResultHelper> doCreate(Project project, BlazeInfo blazeInfo) {
return Optional.of(mockBuildResultHelper);
}
@Override
public Optional<BuildResultHelper> doCreateForLocalBuild(Project project) {
return Optional.of(mockBuildResultHelper);
}
});
}
Aggregations