本文整理汇总了Java中jetbrains.buildServer.serverSide.Branch类的典型用法代码示例。如果您正苦于以下问题:Java Branch类的具体用法?Java Branch怎么用?Java Branch使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Branch类属于jetbrains.buildServer.serverSide包,在下文中一共展示了Branch类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import jetbrains.buildServer.serverSide.Branch; //导入依赖的package包/类
@Before
public void setUp() {
NotificationSettingsDB realOnes = new NotificationSettingsDB();
realOnes.init();
NotificationSettingsDB spied = PowerMockito.spy(realOnes);
PowerMockito.when(spied.readSettings()).thenReturn(realOnes.getDefaultSettings());
template = new NotificationTemplate(spied);
Branch branch = PowerMockito.mock(Branch.class);
PowerMockito.when(branch.getDisplayName()).thenReturn("testBranch");
runningBuild = PowerMockito.mock(SRunningBuild.class);
PowerMockito.when(runningBuild.getBranch()).thenReturn(branch);
PowerMockito.when(runningBuild.getBuildId()).thenReturn(111L);
PowerMockito.when(runningBuild.getBuildNumber()).thenReturn("333");
}
示例2: getBranchName
import jetbrains.buildServer.serverSide.Branch; //导入依赖的package包/类
private String getBranchName(Branch branch) {
return branch == null ? "<default>" : branch.getDisplayName();
}
示例3: FeatureBranchMonitorViewState
import jetbrains.buildServer.serverSide.Branch; //导入依赖的package包/类
public FeatureBranchMonitorViewState(Branch branch, List<SBuildType> orderedBuildTypes) {
this.branch = branch;
this.orderedBuildTypes = orderedBuildTypes;
}
示例4: getBranch
import jetbrains.buildServer.serverSide.Branch; //导入依赖的package包/类
@Nullable
@Override
public Branch getBranch() {
return null;
}