亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? testscreen.java

?? MoMEUnit是一個單元測試的J2ME的應用程序xUnit架構實例。這是來自JUnit框架
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package momeunit.runner;import java.util.Vector;import javax.microedition.lcdui.Canvas;import javax.microedition.lcdui.Font;import javax.microedition.lcdui.Graphics;import javax.microedition.lcdui.game.GameCanvas;import mome.ext.ListShow;import mome.ext.StringWrapper;import momeunit.framework.AssertionFailedError;import momeunit.framework.Test;import momeunit.framework.TestCase;import momeunit.framework.TestListener;import momeunit.framework.TestResult;/** * Canvas used by MIDletTestRunner. Displays progress bar and statistics of * tests run at the top part of screen. Displays list of tests that fails or * completed with errors at middle part of screen and detailed message of * failure of selected test at bottom part of screen. See * {@link momeunit.runner package description} for more details about UI usage. *  * @author Sergio Morozov * @version 1.1.2 */public class TestScreen extends GameCanvas implements TestListener{  /**   * Errors statistics label.   */  private static final String ERRORS_COUNT_PREFIX = "Errors: ";  /**   * Failures statistics label.   */  private static final String FAILURES_COUNT_PREFIX = "Failures: ";  /**   * Tests count statistics label.   */  private static final String TESTS_COUNT_PREFIX = "Tests: ";  /**   * Progress bar height.   */  private static final int PROGRESSBAR_HEIGHT = 10;  /**   * Margin.   */  private static final int MARGIN = 0;  /**   * Default foreground color.   */  private static final int DEFAULT_FG_COLOR = 0xFFFFFF;  /**   * Default background color.   */  private static final int DEFAULT_BG_COLOR = 0x00007F;  /**   * Default ok color.   */  private static final int DEFAULT_OK_COLOR = 0x00FF00;  /**   * Default failures color.   */  private static final int DEFAULT_FAILURE_COLOR = 0xFF00FF;  /**   * Default errors color.   */  private static final int DEFAULT_ERROR_COLOR = 0xFF0000;  /**   * Default selected item background color.   */  private static final int DEFAULT_SELECTED_BG_COLOR = 0xFFFFFF;  /**   * Default selected item foreground color.   */  private static final int DEFAULT_SELECTED_FG_COLOR = 0x0;  /**   * Default font.   */  private static final Font DEFAULT_FONT = Font.getDefaultFont();  /**   * Default statistics font.   */  private static final Font DEFAULT_STATISTICS_FONT = Font.getDefaultFont();  private int bgColor = DEFAULT_BG_COLOR;  private int fgColor = DEFAULT_FG_COLOR;  private int okColor = DEFAULT_OK_COLOR;  private int failureColor = DEFAULT_FAILURE_COLOR;  private int errorColor = DEFAULT_ERROR_COLOR;  private Font statisticsFont = DEFAULT_STATISTICS_FONT;  private int statisticsFontHeight = statisticsFont.getHeight();  private Font font = DEFAULT_FONT;  private int fontHeight = font.getHeight();  private static final int TOP_LEFT = Graphics.TOP | Graphics.LEFT;  private TestResult result = null;  private int testCasesNumber;  private boolean printToStdErr = false;  private boolean printStackTrace = false;  private Graphics g = null;  private boolean failureListType = true;  private boolean hasFailures = false;  private Vector failures = null;  private boolean hasErrors = false;  private Vector errors = null;  private ListShow failTests = null;  private ListShow errorTests = null;  private StringWrapper msgWrapper = null;  private int width;  private int height;  private String lastTest = null;  /**   * Instantiates TestScreen with given title and test cases number.   *    * @param name   *          title of TestScreen.   * @since 1.0   */  public TestScreen(String name)  {    this(name, false, false);  }  /**   * Instantiates TestScreen with given title and test cases number.   *    * @param name   *          title of TestScreen.   * @param testCasesNumber   *          number of test cases.   * @since 1.0   */  public TestScreen(String name, int testCasesNumber)  {    this(name);    this.clearResult(testCasesNumber);  }  /**   * Instantiates TestScreen with given title, test cases number and print   * behaviour flags. if <code>printStdErr</code> is <code>true</code>   * TestScreen will print test failures and errors to standard error output   * together with stack-trace if <code>printStackTrace</code> flag is   * <code>true</code>.   *    * @param name   *          title of TestScreen.   * @param testCasesNumber   *          number of test cases.   * @param printStdErr   *          print to standard error flag.   * @param printStackTrace   *          print stack-trace flag.   * @since 1.0   */  public TestScreen(String name, int testCasesNumber, boolean printStdErr,      boolean printStackTrace)  {    this(name, printStdErr, printStackTrace);    this.clearResult(testCasesNumber);  }  /**   * Instantiates TestScreen with given title and print behaviour flags. if   * <code>printStdErr</code> is <code>true</code> TestScreen will print   * test failures and errors to standard error output together with stack-trace   * if <code>printStackTrace</code> flag is <code>true</code>.   *    * @param name   *          title of TestScreen.   * @param printStdErr   *          print to standard error flag.   * @param printStackTrace   *          print stack-trace flag.   * @since 1.0   */  public TestScreen(String name, boolean printStdErr, boolean printStackTrace)  {    super(false);    this.setTitle(name);    this.setPrintToStdErr(printStdErr);    this.setPrintStackTrace(printStackTrace);    this.g = this.getGraphics();    this.setSize(this.getWidth(), this.getHeight());    int listY = MARGIN + PROGRESSBAR_HEIGHT + this.statisticsFontHeight;    this.errorTests = new ListShow(0, listY, this.width,        (this.height - listY) / 2);    this.errorTests.setBGColor(this.bgColor);    this.errorTests.setFGColor(this.fgColor);    this.errors = new Vector();    this.failTests = new ListShow(0, listY, this.width,        (this.height - listY) / 2);    this.failTests.setBGColor(this.bgColor);    this.failTests.setFGColor(this.fgColor);    this.failures = new Vector();    this.setSelBgColor(DEFAULT_SELECTED_BG_COLOR);    this.setSelFgColor(DEFAULT_SELECTED_FG_COLOR);    this.msgWrapper = new StringWrapper(this.width, this.font);  }  /**   * Sets the size of Canvas.   *    * @param width   *          width of canvas.   * @param height   *          height of canvas.   * @since 1.0   */  private void setSize(int width, int height)  {    this.width = width;    this.height = height;  }  /**   * Sets font of TestScreen.   *    * @param font   *          the font to set   * @throws NullPointerException   *           if font is <code>null</code>.   * @since 1.0   */  public void setFont(Font font)  {    if (font == null) throw new NullPointerException("font");    this.font = font;    this.fontHeight = this.font.getHeight();    this.msgWrapper.setFont(this.font);  }  /**   * Sets font of statistics of TestScreen.   *    * @param font   *          the font of statistics to set   * @throws NullPointerException   *           if font is <code>null</code>.   * @since 1.0   */  public void setStatisticsFont(Font font)  {    if (font == null) throw new NullPointerException("font");    this.statisticsFont = font;    this.statisticsFontHeight = this.statisticsFont.getHeight();    int listY = MARGIN + PROGRESSBAR_HEIGHT + this.statisticsFontHeight;    this.failTests.setY(listY);    this.errorTests.setY(listY);  }  /**   * Sets background color.   *    * @param color   *          color to be set.   * @since 1.0   */  public void setBgColor(int color)  {    this.bgColor = color;    this.failTests.setBGColor(this.bgColor);    this.errorTests.setBGColor(this.bgColor);  }  /**   * Sets background color of selected item.   *    * @param color   *          color to be set.   * @since 1.0   */  public void setSelBgColor(int color)  {    this.failTests.setSelectedBGColor(color);    this.errorTests.setSelectedBGColor(color);  }  /**   * Sets foreground color of selected item.   *    * @param color   *          color to be set.   * @since 1.0   */  public void setSelFgColor(int color)  {    this.failTests.setSelectedFGColor(color);    this.errorTests.setSelectedFGColor(color);  }  /**   * Sets color of progress bar when some tests completed with errors ans color   * of error statistics.   *    * @param color   *          color to be set.   * @since 1.0   */  public void setErrorColor(int color)  {    this.errorColor = color;  }  /**   * Sets color of progress bar when some tests fails and there are no errors   * ans color of failure statistics.   *    * @param color   *          color to be set.   * @since 1.0   */  public void setFailureColor(int color)  {    this.failureColor = color;  }  /**   * Sets foreground color.   *    * @param color   *          color to be set.   * @since 1.0   */  public void setFgColor(int color)  {    this.fgColor = color;    this.failTests.setFGColor(this.fgColor);    this.errorTests.setFGColor(this.fgColor);  }  /**   * Sets color of progress bar when tests completed successfully.   *    * @param color   *          color to be set.   * @since 1.0   */  public void setOkColor(int color)  {    this.okColor = color;  }  /**   * Checks if test failure and error events should be printed to standard error   * output.   *    * @return <code>true</code> if test failure and error events should be   *         printed to standard error output, <code>false</code> otherwise.   * @since 1.0   */  public boolean isPrintToStdErr()  {    return this.printToStdErr;  }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩av在线发布| 9191成人精品久久| 成人毛片老司机大片| 韩国女主播成人在线| 男人操女人的视频在线观看欧美 | 亚洲综合在线电影| 自拍偷拍欧美激情| 亚洲美女免费在线| 一区二区视频在线| 亚洲国产精品视频| 丝袜美腿亚洲一区| 久久国产精品无码网站| 国产精品一二二区| 成人激情免费电影网址| 99久久精品免费观看| 色欧美日韩亚洲| 欧美男人的天堂一二区| 日韩视频免费观看高清完整版| 日韩一二三四区| 国产亚洲一本大道中文在线| 欧美—级在线免费片| 国产精品盗摄一区二区三区| 青草av.久久免费一区| 国产最新精品免费| 成人一区二区三区| 91一区二区在线观看| 欧美四级电影在线观看| 欧美一级午夜免费电影| 国产午夜精品久久久久久久| 亚洲日本丝袜连裤袜办公室| 亚洲妇女屁股眼交7| 韩日欧美一区二区三区| 丁香天五香天堂综合| 91成人免费在线| 欧美一区二区免费观在线| 久久久精品蜜桃| 亚洲欧美日韩一区二区三区在线观看| 午夜精品免费在线观看| 国产在线精品不卡| 色悠久久久久综合欧美99| 6080国产精品一区二区| 日本一区二区三区四区在线视频| 一区二区三区视频在线看| 美日韩一区二区| 91丝袜呻吟高潮美腿白嫩在线观看| 欧美日韩国产高清一区二区三区 | 东方aⅴ免费观看久久av| 欧美中文字幕一二三区视频| 日韩丝袜情趣美女图片| 国产精品私人影院| 日本欧美一区二区三区乱码| 成人妖精视频yjsp地址| 欧美日韩午夜精品| 国产精品视频免费| 久久精品国产网站| 欧洲av在线精品| 国产欧美视频在线观看| 天天av天天翘天天综合网| 国产成人av福利| 51久久夜色精品国产麻豆| 欧美国产欧美综合| 免费一区二区视频| 91麻豆福利精品推荐| 精品福利视频一区二区三区| 亚洲资源在线观看| 国产乱码字幕精品高清av | 亚洲欧洲美洲综合色网| 久久国产精品第一页| 色成人在线视频| 欧美精品一区二区三| 亚洲电影第三页| 91浏览器在线视频| 中文字幕成人网| 精品在线一区二区三区| 欧美日韩精品一区二区三区蜜桃| 国产精品国产三级国产普通话蜜臀| 精品亚洲成a人| 5858s免费视频成人| 亚洲免费在线看| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 久热成人在线视频| 欧美性大战久久久久久久| 中文av一区二区| 国产成人在线观看| 久久综合色综合88| 加勒比av一区二区| 制服丝袜国产精品| 亚洲午夜激情网页| 亚洲同性同志一二三专区| 激情小说欧美图片| 国产精品国产三级国产aⅴ原创| 麻豆国产91在线播放| 精品国产百合女同互慰| 国产激情偷乱视频一区二区三区| 久久精品一二三| 成人激情av网| 一级日本不卡的影视| 欧美日韩一区二区在线观看视频 | 久久免费国产精品| 日韩av二区在线播放| 欧美日韩精品一区二区三区| 亚洲国产一区二区a毛片| 97久久超碰国产精品电影| 亚洲欧美怡红院| 97久久精品人人爽人人爽蜜臀| 国产精品国产三级国产三级人妇| 成人一区二区三区视频在线观看| 国产欧美日韩视频在线观看| 国产高清精品在线| 国产精品免费看片| 成人福利在线看| 亚洲丝袜另类动漫二区| 一本高清dvd不卡在线观看| 亚洲欧美日韩国产手机在线 | 久久久欧美精品sm网站| 国产成人精品一区二| 国产精品婷婷午夜在线观看| 99国产精品一区| 亚洲一线二线三线视频| 欧美日本国产视频| 韩国三级电影一区二区| 国产精品蜜臀av| 色视频成人在线观看免| 亚洲不卡在线观看| 欧美成人一区二区三区片免费 | 欧美日韩亚州综合| 奇米影视在线99精品| 欧美精品一区二区久久婷婷| 成人亚洲一区二区一| 亚洲蜜臀av乱码久久精品蜜桃| 欧美猛男超大videosgay| 麻豆91精品视频| 中文字幕中文在线不卡住| 在线免费观看日本欧美| 麻豆成人免费电影| 国产精品高潮久久久久无| 在线观看三级视频欧美| 卡一卡二国产精品| 中文字幕一区二区三区蜜月 | 亚洲自拍偷拍av| 精品日本一线二线三线不卡| 成人网在线免费视频| 亚洲在线观看免费| 久久在线免费观看| 色综合网站在线| 麻豆freexxxx性91精品| 国产精品女上位| 欧美一区二区三区喷汁尤物| 国产精品99久久久久久久vr| 亚洲美女视频一区| 精品久久人人做人人爽| 91丨porny丨蝌蚪视频| 蜜桃久久久久久久| 亚洲视频一二三| 精品精品国产高清a毛片牛牛 | 国产精品久久看| 日韩欧美在线网站| 日本黄色一区二区| 国产一区二区91| 午夜激情综合网| 国产精品天美传媒| 91精品国产综合久久福利软件| 成人久久18免费网站麻豆| 日本视频一区二区| 一区二区三区欧美亚洲| 26uuu另类欧美亚洲曰本| 欧美日韩午夜在线视频| 成人av手机在线观看| 蜜桃久久久久久| 亚洲一区二区av在线| 蜜臀av国产精品久久久久| 亚洲色大成网站www久久九九| 日韩精品一区二区三区中文精品| 91在线免费播放| 国产麻豆精品95视频| 日韩av中文在线观看| 一区二区三区在线不卡| 欧美精彩视频一区二区三区| 91精品国产免费| 91传媒视频在线播放| 99精品视频在线观看| 国产精品一区二区不卡| 麻豆成人av在线| 日韩avvvv在线播放| 亚洲自拍偷拍图区| 亚洲欧洲综合另类在线| 国产女同性恋一区二区| 久久综合久久综合久久综合| 日韩一区二区三区三四区视频在线观看 | 亚洲同性gay激情无套| 国产午夜精品一区二区三区四区| 日韩欧美美女一区二区三区| 在线播放一区二区三区| 欧美天堂亚洲电影院在线播放 | 欧美激情一区二区三区在线| 欧美zozozo| 精品久久国产97色综合| 日韩精品一区二区三区中文精品| 5858s免费视频成人| 欧美精品第1页|