本文整理汇总了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;
}
示例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");
}
示例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");
}
示例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;
}