當前位置: 首頁>>代碼示例>>Java>>正文


Java InstrumentationRegistry.getTargetContext方法代碼示例

本文整理匯總了Java中android.support.test.InstrumentationRegistry.getTargetContext方法的典型用法代碼示例。如果您正苦於以下問題:Java InstrumentationRegistry.getTargetContext方法的具體用法?Java InstrumentationRegistry.getTargetContext怎麽用?Java InstrumentationRegistry.getTargetContext使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.support.test.InstrumentationRegistry的用法示例。


在下文中一共展示了InstrumentationRegistry.getTargetContext方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("me.anshulagarwal.expandablemenuoption.test", appContext.getPackageName());
}
 
開發者ID:anshulagarwal06,項目名稱:ExpandableMenu,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例2: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("com.crazydude.common.test", appContext.getPackageName());
}
 
開發者ID:CrazyDude1994,項目名稱:lostfilm-android-client,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例3: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    mFaBoUsbManger = new FaBoUsbManager(appContext);
    mFaBoUsbManger.setParameter(FaBoUsbConst.BAUNDRATE_115200);
    mFaBoUsbManger.setListener(this);
    mFaBoUsbManger.findDevice();
}
 
開發者ID:FaBoPlatform,項目名稱:FaBo-Serial-Kit,代碼行數:11,代碼來源:Test10.java

示例4: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("com.beraldo.twstreaming", appContext.getPackageName());
}
 
開發者ID:beraldofilippo,項目名稱:TWStreaming,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例5: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("songify.akshaypall.com.songifymusicplayer", appContext.getPackageName());
}
 
開發者ID:AkshayPall,項目名稱:Songify,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例6: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("com.theah64.coinhive.test", appContext.getPackageName());
}
 
開發者ID:theapache64,項目名稱:coin_hive_android_sdk,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例7: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("com.zterry.itemcontainer", appContext.getPackageName());
}
 
開發者ID:liuzhanta,項目名稱:ItemContainer,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例8: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("com.simasteam.adsimasteam.test", appContext.getPackageName());
}
 
開發者ID:leosimas,項目名稱:AdSimasTeam,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例9: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("emeline.mysekai", appContext.getPackageName());
}
 
開發者ID:ecaroff,項目名稱:sekai,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例10: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("com.slobodanantonijevic.customtextviewexample", appContext.getPackageName());
}
 
開發者ID:slobodanantonijevic,項目名稱:CustomTextView,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例11: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("baryberri.a3_6_gridlayout", appContext.getPackageName());
}
 
開發者ID:Jamjomjara,項目名稱:snu-artoon,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例12: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public
void useAppContext() throws Exception {
	// Context of the app under test.
	Context appContext = InstrumentationRegistry.getTargetContext();

	assertEquals("com.example.vivchar.rendererrecyclerviewadapter.test", appContext.getPackageName());
}
 
開發者ID:vivchar,項目名稱:RendererRecyclerViewAdapter,代碼行數:9,代碼來源:ExampleInstrumentedTest.java

示例13: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("ru.radiomayak", appContext.getPackageName());
}
 
開發者ID:kalikov,項目名稱:lighthouse,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例14: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("com.bignerdranch.android.criminalintent", appContext.getPackageName());
}
 
開發者ID:rsippl,項目名稱:AndroidProgramming3e,代碼行數:8,代碼來源:ExampleInstrumentedTest.java

示例15: useAppContext

import android.support.test.InstrumentationRegistry; //導入方法依賴的package包/類
@Test
public void useAppContext() throws Exception {
    // Context of the app under test.
    Context appContext = InstrumentationRegistry.getTargetContext();

    assertEquals("com.beiing.monthcalendar.test", appContext.getPackageName());
}
 
開發者ID:LineChen,項目名稱:Month_Calendar,代碼行數:8,代碼來源:ExampleInstrumentedTest.java


注:本文中的android.support.test.InstrumentationRegistry.getTargetContext方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。