当前位置: 首页>>代码示例>>Java>>正文


Java TestsProgressAnimator.FRAMES属性代码示例

本文整理汇总了Java中com.intellij.execution.testframework.ui.TestsProgressAnimator.FRAMES属性的典型用法代码示例。如果您正苦于以下问题:Java TestsProgressAnimator.FRAMES属性的具体用法?Java TestsProgressAnimator.FRAMES怎么用?Java TestsProgressAnimator.FRAMES使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.intellij.execution.testframework.ui.TestsProgressAnimator的用法示例。


在下文中一共展示了TestsProgressAnimator.FRAMES属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getIcon

@Nullable
private static Icon getIcon(final SMTestProxy testProxy,
                            final TestConsoleProperties consoleProperties) {
  final TestStateInfo.Magnitude magnitude = testProxy.getMagnitudeInfo();

  final boolean hasErrors = testProxy.hasErrors();

  switch (magnitude) {
    case ERROR_INDEX:
      return ERROR_ICON;
    case FAILED_INDEX:
      return hasErrors ? FAILED_E_ICON : FAILED_ICON;
    case IGNORED_INDEX:
      return hasErrors ? IGNORED_E_ICON : IGNORED_ICON;
    case NOT_RUN_INDEX:
      return NOT_RAN;
    case COMPLETE_INDEX:
    case PASSED_INDEX:
      return hasErrors ? PASSED_E_ICON : PASSED_ICON;
    case RUNNING_INDEX:
      if (consoleProperties.isPaused()) {
        return hasErrors ? PAUSED_E_ICON : AllIcons.RunConfigurations.TestPaused;
      }
      else {
        final int frameIndex = TestsProgressAnimator.getCurrentFrameIndex();
        return hasErrors ? FRAMES_E[frameIndex] : TestsProgressAnimator.FRAMES[frameIndex];
      }
    case SKIPPED_INDEX:
      return hasErrors ? SKIPPED_E_ICON : SKIPPED_ICON;
    case TERMINATED_INDEX:
      return hasErrors ? TERMINATED_E_ICON : TERMINATED_ICON;
  }
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:34,代码来源:TestsPresentationUtil.java

示例2: assertIsAnimatorProgressIcon

private static void assertIsAnimatorProgressIcon(final Icon icon) {
  for (Icon frame : TestsProgressAnimator.FRAMES) {
    if (icon == frame) {
      return;
    }
  }

  fail("Icon isn't an Animator progress frame");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:TestsPresentationUtilTest.java

示例3: assertIsAnimatorProgressIcon

private void assertIsAnimatorProgressIcon(final Icon icon) {
  for (Icon frame : TestsProgressAnimator.FRAMES) {
    if (icon == frame) {
      return;
    }
  }

  fail("Icon isn't an Animator progress frame");
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:TestsPresentationUtilTest.java

示例4: getIcon

@javax.annotation.Nullable
private static Icon getIcon(final SMTestProxy testProxy,
                            final TestConsoleProperties consoleProperties) {
  final TestStateInfo.Magnitude magnitude = testProxy.getMagnitudeInfo();

  final boolean hasErrors = testProxy.hasErrors();

  switch (magnitude) {
    case ERROR_INDEX:
      return ERROR_ICON;
    case FAILED_INDEX:
      return hasErrors ? FAILED_E_ICON : FAILED_ICON;
    case IGNORED_INDEX:
      return hasErrors ? IGNORED_E_ICON : IGNORED_ICON;
    case NOT_RUN_INDEX:
      return NOT_RAN;
    case COMPLETE_INDEX:
    case PASSED_INDEX:
      return hasErrors ? PASSED_E_ICON : PASSED_ICON;
    case RUNNING_INDEX:
      if (consoleProperties.isPaused()) {
        return hasErrors ? PAUSED_E_ICON : AllIcons.RunConfigurations.TestPaused;
      }
      else {
        final int frameIndex = TestsProgressAnimator.getCurrentFrameIndex();
        return hasErrors ? FRAMES_E[frameIndex] : TestsProgressAnimator.FRAMES[frameIndex];
      }
    case SKIPPED_INDEX:
      return hasErrors ? SKIPPED_E_ICON : SKIPPED_ICON;
    case TERMINATED_INDEX:
      return hasErrors ? TERMINATED_E_ICON : TERMINATED_ICON;
  }
  return null;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:34,代码来源:TestsPresentationUtil.java


注:本文中的com.intellij.execution.testframework.ui.TestsProgressAnimator.FRAMES属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。