• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java TestName类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中jetbrains.buildServer.tests.TestName的典型用法代码示例。如果您正苦于以下问题:Java TestName类的具体用法?Java TestName怎么用?Java TestName使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TestName类属于jetbrains.buildServer.tests包,在下文中一共展示了TestName类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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());

    	}
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:17,代码来源:MsTeamsNotificationListener.java


示例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());

    	}
}
 
开发者ID:PeteGoo,项目名称:tcSlackBuildNotifier,代码行数:17,代码来源:SlackNotificationListener.java


示例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");
}
 
开发者ID:dancing-elf,项目名称:teamcity-telegram-plugin,代码行数:10,代码来源:TelegramNotificator.java


示例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");
}
 
开发者ID:dancing-elf,项目名称:teamcity-telegram-plugin,代码行数:10,代码来源:TelegramNotificator.java


示例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);
    }
 
开发者ID:sferencik,项目名称:SinCity,代码行数:10,代码来源:FinishedBuildTestInfo.java


示例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);
}
 
开发者ID:sferencik,项目名称:SinCity,代码行数:15,代码来源:FinishedBuildTestInfo.java


示例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;
}
 
开发者ID:sferencik,项目名称:SinCity,代码行数:8,代码来源:SinCityUtils.java


示例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;
}
 
开发者ID:sferencik,项目名称:SinCity,代码行数:30,代码来源:CulpritFinder.java


示例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)));
    }
}
 
开发者ID:sferencik,项目名称:SinCity,代码行数:34,代码来源:AnalyserTest.java


示例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");

}
 
开发者ID:iguissouma,项目名称:teamcity-yammer-notifier,代码行数:8,代码来源:YammerNotificationListener.java


示例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);
}
 
开发者ID:JetBrains,项目名称:teamcity-achievements,代码行数:8,代码来源:ServerEventsAdapter.java


示例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);
}
 
开发者ID:JetBrains,项目名称:tc-vso-rooms,代码行数:8,代码来源:VSONotificator.java


示例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)");
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:7,代码来源:TestListener.java


示例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;
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:7,代码来源:MsTeamsNotificationPayloadManager.java


示例15: notifyResponsibleChanged

import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void notifyResponsibleChanged(Collection<TestName> testNames, ResponsibilityEntry entry, SProject project,
                                     Set<SUser> users) {
    // ignored
}
 
开发者ID:timomeinen,项目名称:team-piazza,代码行数:6,代码来源:PiazzaNotificator.java


示例16: notifyResponsibleAssigned

import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void notifyResponsibleAssigned(Collection<TestName> testNames, ResponsibilityEntry entry, SProject project,
                                      Set<SUser> users) {
    // ignored
}
 
开发者ID:timomeinen,项目名称:team-piazza,代码行数:6,代码来源:PiazzaNotificator.java


示例17: responsibleChanged

import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
public SlackNotificationPayloadContent responsibleChanged(SProject project,
                                 Collection<TestName> testNames, ResponsibilityEntry entry,
                                 boolean isUserAction) {
    // TODO Auto-generated method stub
    return null;
}
 
开发者ID:PeteGoo,项目名称:tcSlackBuildNotifier,代码行数:7,代码来源:SlackNotificationPayloadManager.java


示例18: 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) {
  final Map<String, Object> root = myMessageBuilder.getTestResponsibilityChangedMap(testNames, entry, project, users);
  sendNotification(users, root, MULTIPLE_TEST_RESPONSIBILITY_CHANGED);
}
 
开发者ID:JetBrains,项目名称:tc-vso-rooms,代码行数:6,代码来源:VSONotificator.java


示例19: notifyResponsibleChanged

import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void notifyResponsibleChanged(Collection<TestName> testNames, ResponsibilityEntry entry, SProject project,
        Set<SUser> users) {
    // ignored
}
 
开发者ID:mironych,项目名称:Team-Piazza,代码行数:6,代码来源:PiazzaNotificator.java


示例20: notifyResponsibleAssigned

import jetbrains.buildServer.tests.TestName; //导入依赖的package包/类
@Override
public void notifyResponsibleAssigned(Collection<TestName> testNames, ResponsibilityEntry entry, SProject project,
        Set<SUser> users) {
    // ignored
}
 
开发者ID:mironych,项目名称:Team-Piazza,代码行数:6,代码来源:PiazzaNotificator.java



注:本文中的jetbrains.buildServer.tests.TestName类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SignatureVisitor类代码示例发布时间:2022-05-22
下一篇:
Java XBreakpoint类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap