ทรัพยากรการทดสอบ

public class TestResource
extends Object

java.lang.Object
com.android.tradefed.cluster.TestResource


คลาสสำหรับจำลองข้อความ TestResource ที่ส่งคืนโดย TFC API

สรุป

วิธีการสาธารณะ

static TestResource fromJson (JSONObject json)
static fromJsonArray (JSONArray jsonArray)
boolean getDecompress ()
String getDecompressDir ()
File getDecompressDir (File parentDir)
getDecompressFiles ()
File getFile (File parentDir)
String getName ()
String getUrl ()
boolean mountZip ()
JSONObject toJson ()

วิธีการสาธารณะ

จากเจสัน

public static TestResource fromJson (JSONObject json)

พารามิเตอร์
json JSONObject

ส่งคืน
TestResource

จาก JsonArray

public static  fromJsonArray (JSONArray jsonArray)

พารามิเตอร์
jsonArray JSONArray

ส่งคืน

พ่น
JSONException

getDecompress

public boolean getDecompress ()

ส่งคืน
boolean

getDecompressDir

public String getDecompressDir ()

ส่งคืน
String

getDecompressDir

public File getDecompressDir (File parentDir)

พารามิเตอร์
parentDir File

ส่งคืน
File

getDecompressFiles

public  getDecompressFiles ()

ส่งคืน

รับไฟล์

public File getFile (File parentDir)

พารามิเตอร์
parentDir File

ส่งคืน
File

รับชื่อ

public String getName ()

ส่งคืน
String

รับUrl

public String getUrl ()

ส่งคืน
String

mountZip

public boolean mountZip ()

ส่งคืน
boolean

ถึงเจสัน

public JSONObject toJson ()

ส่งคืน
JSONObject

พ่น
JSONException