Java Code Examples for android.support.test.InstrumentationRegistry#getTargetContext()
The following examples show how to use
android.support.test.InstrumentationRegistry#getTargetContext() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExampleInstrumentedTest.java From LChart with Apache License 2.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.linheimx.app.library.test", appContext.getPackageName()); }
Example 2
Source File: ExampleInstrumentedTest.java From CartLayout with Apache License 2.0 | 5 votes |
@Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.ocnyang.cartlayout.test", appContext.getPackageName()); }
Example 3
Source File: ExampleInstrumentedTest.java From ViewPager with Apache License 2.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.zzw.activity", appContext.getPackageName()); }
Example 4
Source File: ExampleInstrumentedTest.java From Xrv with Apache License 2.0 | 5 votes |
@Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.example.d.xrecyclerviewf", appContext.getPackageName()); }
Example 5
Source File: ExampleInstrumentedTest.java From journaldev with MIT License | 5 votes |
@Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.journaldev.androidjnibasics", appContext.getPackageName()); }
Example 6
Source File: ExampleInstrumentedTest.java From PickerView with Apache License 2.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.test.video", appContext.getPackageName()); }
Example 7
Source File: ExampleInstrumentedTest.java From BoxedVerticalSeekBar with MIT License | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("abak.tr.com.boxedverticalseekbar.test", appContext.getPackageName()); }
Example 8
Source File: ExampleInstrumentedTest.java From BaseProject with Apache License 2.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.zht.baseproject", appContext.getPackageName()); }
Example 9
Source File: ExampleInstrumentedTest.java From MultiProgressBar with Apache License 2.0 | 5 votes |
@Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.aseem.versatileprogressbar.test", appContext.getPackageName()); }
Example 10
Source File: ExampleInstrumentedTest.java From FreeRadioGroup with Apache License 2.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("sbingo.freeradiogroup.test", appContext.getPackageName()); }
Example 11
Source File: ExampleInstrumentedTest.java From AndroidDemo with MIT License | 5 votes |
@Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("cn.hbu.cs.launchmodestandard", appContext.getPackageName()); }
Example 12
Source File: ExampleInstrumentedTest.java From android-paypal-example with Apache License 2.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.omar.paypal.paymentservice", appContext.getPackageName()); }
Example 13
Source File: ExampleInstrumentedTest.java From Andzu with MIT License | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.canakkoca.andzu.test", appContext.getPackageName()); }
Example 14
Source File: VideoCaptureViewTest.java From LandscapeVideoCamera with Apache License 2.0 | 5 votes |
@UiThreadTest @Test public void viewShoudlBeInflated() { final VideoCaptureView videoCaptureView = new VideoCaptureView(InstrumentationRegistry.getTargetContext()); final View container = videoCaptureView.findViewById(R.id.videocapture_container_rl); assertNotNull(container); }
Example 15
Source File: ExampleInstrumentedTest.java From SlidingTabWithColorIcons with Apache License 2.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("in.myinnos.customimagetab", appContext.getPackageName()); }
Example 16
Source File: ExampleInstrumentedTest.java From HtmlCompat with Apache License 2.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.pixplicity.htmlcompat", appContext.getPackageName()); }
Example 17
Source File: ExampleInstrumentedTest.java From CalendarProviderManager with Apache License 2.0 | 5 votes |
@Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.kyle.calendarprovider", appContext.getPackageName()); }
Example 18
Source File: ExampleInstrumentedTest.java From CardViewShadowColor with Apache License 2.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.zyp.cardview", appContext.getPackageName()); }
Example 19
Source File: ExampleInstrumentedTest.java From IoT-Firstep with GNU General Public License v3.0 | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("kalen.app.blecom", appContext.getPackageName()); }
Example 20
Source File: ExampleInstrumentedTest.java From java with MIT License | 5 votes |
@Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.androidcourse.yosef.clickscounter", appContext.getPackageName()); }