ExampleInstrumentedTest.java
Go to the documentation of this file.
1 package com.intel.realsense.librealsense;
2 
3 import android.content.Context;
4 import androidx.test.platform.app.InstrumentationRegistry;
5 import androidx.test.ext.junit.runners.AndroidJUnit4;
6 
7 import org.junit.Test;
8 import org.junit.runner.RunWith;
9 
10 import static org.junit.Assert.*;
11 
17 @RunWith(AndroidJUnit4.class)
19  @Test
20  public void useAppContext() {
21  // RsContext of the app under test.
22  Context appContext = InstrumentationRegistry.getTargetContext();
23 
24  assertEquals("com.intel.realsense.librealsense", appContext.getPackageName());
25  }
26 }


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:14