Google is committed to advancing racial equity for Black communities. See how.

TestResource

public class TestResource
extends Object

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


A class to model a TestResource message returned by TFC API.

Summary

Public methods

static TestResource fromJson(JSONObject json)
static fromJsonArray(JSONArray jsonArray)
String getName()
String getUrl()
JSONObject toJson()

Public methods

fromJson

public static TestResource fromJson (JSONObject json)

Parameters
json JSONObject

Returns
TestResource

fromJsonArray

public static  fromJsonArray (JSONArray jsonArray)

Parameters
jsonArray JSONArray

Returns

Throws
JSONException

getName

public String getName ()

Returns
String

getUrl

public String getUrl ()

Returns
String

toJson

public JSONObject toJson ()

Returns
JSONObject

Throws
JSONException