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


Java PoolOfTestIcons类代码示例

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


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

示例1: testFormatRootNodeWithChildren_Failed

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatRootNodeWithChildren_Failed() {
  final MyRenderer renderer1 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer());

  mySMRootTestProxy.setTestsReporterAttached();
  mySMRootTestProxy.addChild(mySimpleTest);
  mySMRootTestProxy.setStarted();
  mySimpleTest.setStarted();
  mySimpleTest.setTestFailed("", "", false);
  mySimpleTest.setFinished();
  mySMRootTestProxy.setFinished();

  TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, renderer1);

  assertEquals(PoolOfTestIcons.FAILED_ICON, renderer1.getIcon());
  assertOneElement(renderer1.getFragmentsContainer().getFragments());
  assertEquals("Test Results", renderer1.getFragmentsContainer().getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, renderer1.getFragmentsContainer().getAttribsAt(0));

  final MyRenderer renderer2 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer());
  TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, renderer2);
  mySMRootTestProxy.setFinished();
  assertEquals(PoolOfTestIcons.FAILED_ICON, renderer1.getIcon());
  assertOneElement(renderer1.getFragmentsContainer().getFragments());
  assertEquals("Test Results", renderer1.getFragmentsContainer().getTextAt(0));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:TestsPresentationUtilTest.java

示例2: testFormatRootNodeWithChildren_Error

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatRootNodeWithChildren_Error() {
  final MyRenderer renderer1 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer());

  mySMRootTestProxy.setTestsReporterAttached();
  mySMRootTestProxy.addChild(mySimpleTest);
  mySMRootTestProxy.setStarted();
  mySimpleTest.setStarted();
  mySimpleTest.setTestFailed("", "", true);
  mySimpleTest.addError("msg", "stacktrace", true);
  mySimpleTest.setFinished();
  mySMRootTestProxy.setFinished();

  TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, renderer1);

  assertEquals(PoolOfTestIcons.ERROR_ICON, renderer1.getIcon());
  assertOneElement(renderer1.getFragmentsContainer().getFragments());
  assertEquals("Test Results", renderer1.getFragmentsContainer().getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, renderer1.getFragmentsContainer().getAttribsAt(0));

  final MyRenderer renderer2 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer());
  TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, renderer2);
  mySMRootTestProxy.setFinished();
  assertEquals(PoolOfTestIcons.ERROR_ICON, renderer1.getIcon());
  assertOneElement(renderer1.getFragmentsContainer().getFragments());
  assertEquals("Test Results", renderer1.getFragmentsContainer().getTextAt(0));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:TestsPresentationUtilTest.java

示例3: testFormatRootNodeWithChildren_Ignored

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatRootNodeWithChildren_Ignored() {
  final MyRenderer renderer1 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer());

  mySMRootTestProxy.setTestsReporterAttached();
  mySMRootTestProxy.addChild(mySimpleTest);
  mySMRootTestProxy.setStarted();
  mySimpleTest.setStarted();
  mySimpleTest.setTestIgnored("", null);
  mySimpleTest.setFinished();
  mySMRootTestProxy.setFinished();

  TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, renderer1);

  assertEquals(PoolOfTestIcons.IGNORED_ICON, renderer1.getIcon());
  assertOneElement(renderer1.getFragmentsContainer().getFragments());
  assertEquals("Test Results", renderer1.getFragmentsContainer().getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, renderer1.getFragmentsContainer().getAttribsAt(0));

  final MyRenderer renderer2 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer());
  TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, renderer2);
  mySMRootTestProxy.setFinished();
  assertEquals(PoolOfTestIcons.IGNORED_ICON, renderer1.getIcon());
  assertOneElement(renderer1.getFragmentsContainer().getFragments());
  assertEquals("Test Results", renderer1.getFragmentsContainer().getTextAt(0));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:TestsPresentationUtilTest.java

示例4: testFormatRootNodeWithChildren_TerminatedAndFinished

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatRootNodeWithChildren_TerminatedAndFinished() {
  mySMRootTestProxy.setTestsReporterAttached();
  mySMRootTestProxy.addChild(mySimpleTest);
  mySMRootTestProxy.setStarted();
  mySimpleTest.setStarted();
  mySimpleTest.setFinished();
  mySMRootTestProxy.setTerminated();
  mySMRootTestProxy.setFinished();

  // terminated and finished
  TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, myRenderer);
  mySMRootTestProxy.setFinished();
  assertEquals(PoolOfTestIcons.TERMINATED_ICON, myRenderer.getIcon());
  assertOneElement(myFragContainer.getFragments());
  assertEquals("Terminated", myFragContainer.getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:TestsPresentationUtilTest.java

示例5: testFormatRootNodeWithChildren_Passed_StartShutdownErrors

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatRootNodeWithChildren_Passed_StartShutdownErrors() {
  final MyRenderer renderer1 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer());

  mySMRootTestProxy.setTestsReporterAttached();
  mySMRootTestProxy.addChild(mySimpleTest);
  mySMRootTestProxy.setStarted();
  mySMRootTestProxy.addError("msg1", "stacktrace1", true);
  mySimpleTest.setStarted();
  mySimpleTest.setFinished();
  mySMRootTestProxy.addError("msg2", "stacktrace2", true);
  mySMRootTestProxy.setFinished();

  TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, renderer1);
  assertEquals(SMPoolOfTestIcons.PASSED_E_ICON, renderer1.getIcon());

  final MyRenderer renderer2 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer());
  TestsPresentationUtil.formatTestProxy(mySimpleTest, renderer2);
  assertEquals(PoolOfTestIcons.PASSED_ICON, renderer2.getIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:TestsPresentationUtilTest.java

示例6: testFormatRootNodeWithoutChildren_PY_2434

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatRootNodeWithoutChildren_PY_2434() {
  mySMRootTestProxy.setTestsReporterAttached();
  // See [PY-2434] Unittest: Do not show "No test were found" notification before completing test suite
  mySMRootTestProxy.addChild(mySimpleTest);
  mySMRootTestProxy.setStarted();
  mySimpleTest.setStarted();
  mySimpleTest.setTestFailed("msg", "stacktrace", false);
  mySimpleTest.setFinished();
  mySMRootTestProxy.setFinished();
  TestsPresentationUtil.formatRootNodeWithoutChildren(mySMRootTestProxy, myRenderer);

  assertEquals(PoolOfTestIcons.FAILED_ICON, myRenderer.getIcon());
  assertOneElement(myFragContainer.getFragments());
  assertEquals("Test Results", myFragContainer.getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:TestsPresentationUtilTest.java

示例7: testFormatTestProxyTest_NewTest

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatTestProxyTest_NewTest() {
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);

  assertEquals(PoolOfTestIcons.NOT_RAN, myRenderer.getIcon());
  assertOneElement(myFragContainer.getFragments());
  assertEquals(FAKE_TEST_NAME, myFragContainer.getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:TestsPresentationUtilTest.java

示例8: testFormatTestProxyTest_NewTestPaused

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatTestProxyTest_NewTestPaused() {
  //paused
  final MyRenderer pausedRenderer = new MyRenderer(true, myFragContainer = new UITestUtil.FragmentsContainer());
  TestsPresentationUtil.formatTestProxy(mySimpleTest, pausedRenderer);

  assertEquals(PoolOfTestIcons.NOT_RAN, pausedRenderer.getIcon());
  assertEquals(1, myFragContainer.getFragments().size());
  assertEquals(FAKE_TEST_NAME, myFragContainer.getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:TestsPresentationUtilTest.java

示例9: testFormatTestProxyTest_Passed

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatTestProxyTest_Passed() {
  mySimpleTest.setStarted();
  mySimpleTest.setFinished();
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);

  assertEquals(PoolOfTestIcons.PASSED_ICON, myRenderer.getIcon());
  assertOneElement(myFragContainer.getFragments());
  assertEquals(FAKE_TEST_NAME, myFragContainer.getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:TestsPresentationUtilTest.java

示例10: testFormatTestProxyTest_Failed

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatTestProxyTest_Failed() {
  mySimpleTest.setStarted();
  mySimpleTest.setTestFailed("", "", false);
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);

  assertEquals(PoolOfTestIcons.FAILED_ICON, myRenderer.getIcon());
  assertOneElement(myFragContainer.getFragments());
  assertEquals(FAKE_TEST_NAME, myFragContainer.getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0));

  mySimpleTest.setFinished();
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);
  assertEquals(PoolOfTestIcons.FAILED_ICON, myRenderer.getIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:TestsPresentationUtilTest.java

示例11: testFormatTestProxyTest_Error

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatTestProxyTest_Error() {
  mySimpleTest.setStarted();
  mySimpleTest.setTestFailed("", "", true);
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);

  assertEquals(PoolOfTestIcons.ERROR_ICON, myRenderer.getIcon());
  assertOneElement(myFragContainer.getFragments());
  assertEquals(FAKE_TEST_NAME, myFragContainer.getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0));

  mySimpleTest.setFinished();
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);
  assertEquals(PoolOfTestIcons.ERROR_ICON, myRenderer.getIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:TestsPresentationUtilTest.java

示例12: testFormatTestProxyTest_Error_WithErrors

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatTestProxyTest_Error_WithErrors() {
  mySimpleTest.setStarted();
  mySimpleTest.setTestFailed("", "", true);
  mySimpleTest.addError("msg", "stacktrace", true);
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);

  assertEquals(PoolOfTestIcons.ERROR_ICON, myRenderer.getIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:TestsPresentationUtilTest.java

示例13: testFormatTestProxyTest_Ignored

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatTestProxyTest_Ignored() {
  mySimpleTest.setStarted();
  mySimpleTest.setTestIgnored("", null);
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);

  assertEquals(PoolOfTestIcons.IGNORED_ICON, myRenderer.getIcon());
  assertOneElement(myFragContainer.getFragments());
  assertEquals(FAKE_TEST_NAME, myFragContainer.getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0));

  mySimpleTest.setFinished();
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);
  assertEquals(PoolOfTestIcons.IGNORED_ICON, myRenderer.getIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:TestsPresentationUtilTest.java

示例14: testFormatTestProxyTest_Terminated

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatTestProxyTest_Terminated() {
  mySimpleTest.setStarted();
  mySimpleTest.setTerminated();
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);

  assertEquals(PoolOfTestIcons.TERMINATED_ICON, myRenderer.getIcon());
  assertOneElement(myFragContainer.getFragments());
  assertEquals(FAKE_TEST_NAME, myFragContainer.getTextAt(0));
  assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myFragContainer.getAttribsAt(0));

  mySimpleTest.setFinished();
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);
  assertEquals(PoolOfTestIcons.TERMINATED_ICON, myRenderer.getIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:TestsPresentationUtilTest.java

示例15: testFormatTestProxyTest_WithNoncriticalErrors

import com.intellij.execution.testframework.PoolOfTestIcons; //导入依赖的package包/类
public void testFormatTestProxyTest_WithNoncriticalErrors() {
  mySimpleTest.setStarted();
  mySimpleTest.addError("msg", "stacktrace", false);
  mySimpleTest.setFinished();
  TestsPresentationUtil.formatTestProxy(mySimpleTest, myRenderer);

  assertEquals(PoolOfTestIcons.PASSED_ICON, myRenderer.getIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:TestsPresentationUtilTest.java


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