jetbrains.buildServer.serverSide.buildLog.BuildLog Java Examples
The following examples show how to use
jetbrains.buildServer.serverSide.buildLog.BuildLog.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BranchesAndPullRequestsParametersPreprocessorTest.java From TeamCity.SonarQubePlugin with Apache License 2.0 | 6 votes |
private static Map<String, String> executeProcessor(Map<String, String> buildParams, boolean featureEnabled, String teamCityVersion) { final Map<String, String> runParameters = new HashMap<>(); final SRunningBuild build = mock(SRunningBuild.class); when(build.getBuildLog()).thenReturn(mock(BuildLog.class)); if (featureEnabled) { final SBuildFeatureDescriptor mockbf = mock(SBuildFeatureDescriptor.class); when(mockbf.getType()).thenReturn(BranchesAndPullRequestsBuildFeature.BUILD_FEATURE_TYPE); when(build.getBuildFeaturesOfType(BranchesAndPullRequestsBuildFeature.BUILD_FEATURE_TYPE)).thenReturn(Collections.singleton(mockbf)); } BranchesAndPullRequestsParametersPreprocessor processor = spy(BranchesAndPullRequestsParametersPreprocessor.class); when(processor.getServerVersionInfo()).thenReturn(mockServerVersionInfo(teamCityVersion)); processor.fixRunBuildParameters(build, runParameters, buildParams); return buildParams; }
Example #2
Source File: MockSRunningBuild.java From tcSlackBuildNotifier with MIT License | 4 votes |
public BuildLog getBuildLog() { // TODO Auto-generated method stub return null; }
Example #3
Source File: ReportsMain.java From appengine-tck with Apache License 2.0 | 4 votes |
@NotNull @Override public BuildLog getBuildLog() { return null; }