当前位置: 首页>>代码示例>>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;未经允许,请勿转载。