Package junit.framework

Examples of junit.framework.TestFailure


    public Component getListCellRendererComponent(
      JList list, Object value, int modelIndex,
      boolean isSelected, boolean cellHasFocus) {
 
        Component c= super.getListCellRendererComponent(list, value, modelIndex, isSelected, cellHasFocus);
      TestFailure failure= (TestFailure)value;
      String text= failure.failedTest().toString();
      String msg= failure.exceptionMessage();
      if (msg != null)
        text+= ":" + BaseTestRunner.truncate(msg);
  
      if (failure.isFailure()) {
        if (fFailureIcon != null)
            setIcon(fFailureIcon);
      } else {
          if (fErrorIcon != null)
            setIcon(fErrorIcon);
View Full Code Here

TOP

Related Classes of junit.framework.TestFailure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.