1package com.baidu.paddle.fastdeploy;
2
3import android.content.Context;
4
5import androidx.test.platform.app.InstrumentationRegistry;
6import androidx.test.ext.junit.runners.AndroidJUnit4;
7
8import org.junit.Test;
9import org.junit.runner.RunWith;
10
11import static org.junit.Assert.*;
12
13/**
14 * Instrumented test, which will execute on an Android device.
15 *
16 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
17 */
18@RunWith(AndroidJUnit4.class)
19public class ExampleInstrumentedTest {
20 @Test
21 public void useAppContext() {
22 // Context of the app under test.
23 Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 assertEquals("com.baidu.paddle.fastdeploy", appContext.getPackageName());
25 }
26}