<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Goingmm

      BlogJava :: 首頁 :: 新隨筆 ::  :: 聚合  :: 管理 ::
      82 隨筆 :: 15 文章 :: 452 評論 :: 0 Trackbacks

    ------------------------------------------------------------------------------------------------
       Eclipse Platform
    Version: 3.1.0 Build id: I20050219-1500

       
      Junit Version:
    3.8.1

    ------------------------------------------------------------------------------------------------

    EclipseJunit 大家應(yīng)該都很熟悉了。這里我也不打算去講為什么需要做這樣的組合。為什么需要測試。為什么測試還有那么多講究和學(xué)問。用一個最簡單的例子,讓還沒有使用過的朋友,有一個簡單的認(rèn)識。主要是發(fā)圖玩玩

     

    1)看看完成后的效果圖
    Project.JPG

    2)      
    運行Eclipse。新建一個workplace項目,點擊 file->new->project,選擇Java項目,點擊下一步。寫一個項目名稱,例如UseJUnit。點擊Finish。這樣就完成新項目的建立。再來配置一下Eclipse,在構(gòu)建路徑中添加JUnit類庫。在工具條上點擊項目->屬性,選擇Java Build Path,Libraries,選擇 Add external JARs,瀏覽Junit被存儲的目錄,選擇junit.jar,點擊打開。你將會看見JUnit出現(xiàn)在庫的列表中。點擊確定,讓Eclipse重建路徑。
    addJar.JPG

             

    3)新建一個Class Person
    Person.JPG

    4) 新建一個Test Class TestCaseWithJunit
    newJunit.JPG

    代碼如下:public void testSay() 方法是我自己加進(jìn)去的

    TestCaseWithJunit.JPG

    5) Run Test case
       runJunit.JPG

    6) 看看測試結(jié)果
          result-1.JPG

    7)修改一下測試代碼
       modifiedcode.JPG

    8)再看測試結(jié)果
    result-2.JPG

    result-3.JPG



    呵呵! 第一次發(fā)圖。如果上面的過程描述有什么不清楚的地方。請與我聯(lián)系

    2005-11-13  聽濤 窗臺


    posted on 2005-11-13 13:45 Goingmm 閱讀(380) 評論(1)  編輯  收藏 所屬分類: Reading Note

    評論

    # re: Eclipse + Junit 2005-11-13 14:28 _
    這個 blog 居然會這樣:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


    <!-- Web.Config Configuration File -->

    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>


    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


    <!-- Web.Config Configuration File -->

    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>

      回復(fù)  更多評論
      

    主站蜘蛛池模板: 日本19禁啪啪无遮挡免费动图| 99视频精品全部免费观看| 91麻豆最新在线人成免费观看| 亚洲区小说区激情区图片区| 国产成人精品免费大全| 亚洲毛片av日韩av无码| 久久久精品国产亚洲成人满18免费网站 | 五月天婷婷免费视频| 亚洲国产精品第一区二区三区| 深夜免费在线视频| 亚洲中文字幕无码一区二区三区 | 中文在线观看免费网站| 久久亚洲高清观看| 99精品一区二区免费视频| 亚洲精品中文字幕麻豆| 青苹果乐园免费高清在线| 亚洲码和欧洲码一码二码三码| 麻豆国产人免费人成免费视频| 日韩色日韩视频亚洲网站| 亚洲男人av香蕉爽爽爽爽| 91成人免费福利网站在线| 久久久久亚洲精品无码蜜桃| 免费观看无遮挡www的视频| 亚洲成AV人片在WWW| 亚洲一区二区三区国产精品| 最好免费观看高清在线| 亚洲国产成人久久99精品| 麻豆国产人免费人成免费视频| 国产精品青草视频免费播放| 亚洲Aⅴ无码专区在线观看q| 无码中文字幕av免费放| 人人公开免费超级碰碰碰视频| 亚洲国产综合专区电影在线| 最近中文字幕无吗免费高清| 国产成人自产拍免费视频| 久久亚洲国产精品成人AV秋霞| 又爽又黄无遮挡高清免费视频| 暖暖免费在线中文日本| 亚洲AV无码一区二区三区牛牛| 亚洲国产成人久久笫一页| 免费无码VA一区二区三区|