• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • Android系統單元測試方法(10)

    發表于:2011-06-30來源:未知作者:領測軟件測試網采編點擊數: 標簽:
    import android.test.ActivityInstrumentationTestCase; public class TestApp extends ActivityInstrumentationTestCaseAndroidUT{ public TestApp() { super ( com.android.ut ,AndroidUT. class ); } public void
  •   
  • import android.test.ActivityInstrumentationTestCase;   
  •   
  • public class TestApp extends ActivityInstrumentationTestCase<AndroidUT> {   
  •       
  •     public TestApp()   
  •     {   
  •         super("com.android.ut", AndroidUT.class);   
  •     }   
  •       
  •     public void testSum()   
  •     {   
  •         assertEquals(5, getActivity().add(23));   
  •     }      
  • }  

  •   Step 3.最后一步就是要改一下Manifest文件。

    Java代碼 復制代碼 收藏代碼
    1. <?xml version="1.0" encoding="utf-8"?>   
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"  
    3.       package="com.android.ut"  
    4.       android:versionCode="1"  
    5.       android:versionName="1.0.0">   
    6.     <application android:icon="@drawable/icon" android:label="@string/app_name">   
    7.         <activity android:name=".AndroidUT"  
    8.                   android:label="@string/app_name">   
    9.             <intent-filter>   
    10.                 <action android:name="android.intent.action.MAIN" />   
    11.                 <category android:name=

      原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>