本文整理汇总了Java中jetbrains.buildServer.tests.TestName类的典型用法代码示例。如果您正苦于以下问题:Java TestName类的具体用法?Java TestName怎么用?Java TestName使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TestName类属于jetbrains.buildServer.tests包,在下文中一共展示了TestName类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: responsibleChanged
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void responsibleChanged(SProject project,
Collection<TestName> testNames, ResponsibilityEntry entry,
boolean isUserAction) {
Loggers.SERVER.debug(BUILD_STATE_MESSAGE_START + project.getProjectId() + BUILD_STATE_MESSAGE_END);
for (MsTeamsNotificationConfigWrapper whcw : getListOfEnabledMsTeamsNotifications(project.getProjectId())){
whcw.msteamsNotification.setPayload(myManager.responsibleChanged(project,
testNames,
entry,
isUserAction));
whcw.msteamsNotification.setEnabled(whcw.msteamsNotification.getBuildStates().enabled(BuildStateEnum.RESPONSIBILITY_CHANGED));
doPost(whcw.msteamsNotification);
//Loggers.ACTIVITIES.debug("MsTeamsNotificationListener :: " + myManager.getFormat(whcw.whc.getPayloadFormat()).getFormatDescription());
}
}
示例2: responsibleChanged
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void responsibleChanged(SProject project,
Collection<TestName> testNames, ResponsibilityEntry entry,
boolean isUserAction) {
Loggers.SERVER.debug(BUILD_STATE_MESSAGE_START + project.getProjectId() + BUILD_STATE_MESSAGE_END);
for (SlackNotificationConfigWrapper whcw : getListOfEnabledSlackNotifications(project.getProjectId())){
whcw.slackNotification.setPayload(myManager.responsibleChanged(project,
testNames,
entry,
isUserAction));
whcw.slackNotification.setEnabled(whcw.slackNotification.getBuildStates().enabled(BuildStateEnum.RESPONSIBILITY_CHANGED));
doPost(whcw.slackNotification);
//Loggers.ACTIVITIES.debug("SlackNotificationListener :: " + myManager.getFormat(whcw.whc.getPayloadFormat()).getFormatDescription());
}
}
示例3: notifyResponsibleChanged
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void notifyResponsibleChanged(@NotNull Collection<TestName> testNames,
@NotNull ResponsibilityEntry entry,
@NotNull SProject project,
@NotNull Set<SUser> users) {
Map<String, Object> root = messageBuilder.
getTestResponsibilityAssignedMap(testNames, entry, project, users);
this.sendNotification(root, users, "multiple_test_responsibility_changed");
}
示例4: notifyResponsibleAssigned
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void notifyResponsibleAssigned(@NotNull Collection<TestName> testNames,
@NotNull ResponsibilityEntry entry,
@NotNull SProject project,
@NotNull Set<SUser> users) {
Map<String, Object> root = messageBuilder.
getTestResponsibilityChangedMap(testNames, entry, project, users);
this.sendNotification(root, users, "multiple_test_responsibility_assigned_to_me");
}
示例5: testFailed
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
public boolean testFailed(TestName testFailure) {
if (failingTestsCache == null) {
// lazy-initialise the cache (list of failing tests)
failingTestsCache = SinCityUtils.getNamesOfFailingTests(build);
}
return failingTestsCache.contains(testFailure);
}
示例6: testSucceeded
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
public boolean testSucceeded(TestName testFailure) {
if (testFailed(testFailure))
return false;
if (allTestsCache == null) {
// lazy-initialise the cache (list of all tests)
allTestsCache = new HashSet<TestName>();
for (STestRun testRun : build.getBuildStatistics(BuildStatisticsOptions.ALL_TESTS_NO_DETAILS).getAllTests()) {
allTestsCache.add(testRun.getTest().getName());
}
}
return allTestsCache.contains(testFailure);
}
示例7: getNamesOfFailingTests
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
public static List<TestName> getNamesOfFailingTests(SBuild build) {
List<TestName> testNames = new ArrayList<TestName>();
for (TestInfo test : build.getTestMessages(0, -1)) {
testNames.add(test.getTestName());
}
return testNames;
}
示例8: getRelevantTestFailures
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
private List<TestName> getRelevantTestFailures()
{
SettingNames settingNames = new SettingNames();
if (triggerOnTestFailure.equals(settingNames.getNoTrigger())) {
Loggers.SERVER.debug("[SinCity] test failures do not trigger");
return new ArrayList<TestName>();
}
final List<TestName> thisBuildTestFailures = SinCityUtils.getNamesOfFailingTests(newBuild);
Loggers.SERVER.debug("[SinCity] this build's test failures: " + thisBuildTestFailures);
if (triggerOnTestFailure.equals(settingNames.getTriggerOnAll())) {
Loggers.SERVER.debug("[SinCity] reporting all test failures");
return thisBuildTestFailures;
}
final List<TestName> previousBuildTestFailures = oldBuild == null
? new ArrayList<TestName>()
: SinCityUtils.getNamesOfFailingTests(oldBuild);
Loggers.SERVER.debug("[SinCity] previous build's test failures: " + previousBuildTestFailures);
final List<TestName> relevantTestFailures = new ArrayList<TestName>(thisBuildTestFailures);
relevantTestFailures.removeAll(previousBuildTestFailures);
Loggers.SERVER.debug("[SinCity] relevant test failures: " + relevantTestFailures);
Loggers.SERVER.debug("[SinCity] reporting new test failures");
return relevantTestFailures;
}
示例9: SetUp
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@BeforeMethod
public void SetUp() {
mockery = new Mockery();
// allow mocking concrete classes; http://vikinghammer.com/2012/05/15/jmock-concrete-classes/
mockery.setImposteriser(ClassImposteriser.INSTANCE);
test1TestName = mockery.mock(TestName.class, "test1TestName");
test2TestName = mockery.mock(TestName.class, "test2TestName");
test1STestRun = mockery.mock(STestRun.class, "test1STestRun");
test1STest = mockery.mock(STest.class, "test1STest");
test1FailureTestInfo = mockery.mock(TestInfo.class, "test1FailureTestInfo");
test2STestRun = mockery.mock(STestRun.class, "test2STestRun");
test2STest = mockery.mock(STest.class, "test2STest");
test2FailureTestInfo = mockery.mock(TestInfo.class, "test2FailureTestInfo");
buildStatisticsGood = mockery.mock(BuildStatistics.class, "buildStatisticsGood");
buildStatisticsNoRun = mockery.mock(BuildStatistics.class, "buildStatisticsNoRun");
change0 = mockery.mock(SVcsModification.class, "change0");
change1 = mockery.mock(SVcsModification.class, "change1");
change2 = mockery.mock(SVcsModification.class, "change2");
buildGood = mockery.mock(SFinishedBuild.class, "buildGood");
buildBad1 = mockery.mock(SFinishedBuild.class, "buildBad1");
buildBad2 = mockery.mock(SFinishedBuild.class, "buildBad2");
buildNoRun = mockery.mock(SFinishedBuild.class, "buildNoRun");
buildNoRunSequence = new ArrayList<SFinishedBuild>(NUMBER_OF_NO_RUN_BUILDS_IN_SEQUENCE);
for (int i = 0; i < NUMBER_OF_NO_RUN_BUILDS_IN_SEQUENCE; i++) {
buildNoRunSequence.add(mockery.mock(SFinishedBuild.class, String.format("buildNoRun%d", i)));
}
}
示例10: responsibleChanged
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void responsibleChanged(SProject project,
Collection<TestName> testNames, ResponsibilityEntry entry,
boolean isUserAction) {
Loggers.SERVER.debug("About to process YammerNotifications for " + project.getProjectId() + " at buildState responsibilityChanged");
}
示例11: responsibleChanged
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void responsibleChanged(@NotNull SProject project, @NotNull Collection<TestName> testNames, @NotNull ResponsibilityEntry entry, boolean isUserAction) {
super.responsibleChanged(project, testNames, entry, isUserAction);
notifyInvestigationDelegated(entry);
notifyInvestigationTaken(entry);
}
示例12: notifyResponsibleAssigned
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void notifyResponsibleAssigned(@NotNull Collection<TestName> testNames, @NotNull ResponsibilityEntry entry, @NotNull SProject project, @NotNull Set<SUser> users) {
final Map<String, Object> root = myMessageBuilder.getTestResponsibilityAssignedMap(testNames, entry, project, users);
root.put("responsibleUser", getUserDisplayName(entry.getResponsibleUser()));
root.put("reporterUser", getUserDisplayName(entry.getReporterUser()));
sendNotification(users, root, MULTIPLE_TEST_RESPONSIBILITY_ASSIGNED);
}
示例13: responsibleChanged
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void responsibleChanged(SProject project,
Collection<TestName> testNames, ResponsibilityEntry entry,
boolean isUserAction) {
logit("responsibleChanged(SProject project, Collection<TestName> testNames, ResponsibilityEntry entry, boolean isUserAction)");
}
示例14: responsibleChanged
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
public MsTeamsNotificationPayloadContent responsibleChanged(SProject project,
Collection<TestName> testNames, ResponsibilityEntry entry,
boolean isUserAction) {
// TODO Auto-generated method stub
return null;
}
示例15: notifyResponsibleChanged
import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void notifyResponsibleChanged(Collection<TestName> testNames, ResponsibilityEntry entry, SProject project,
Set<SUser> users) {
// ignored
}