型を管理するモジュールを追加

This commit is contained in:
r-ca committed 2023-12-14 04:10:36 +09:00
1 parent e50a3bb8ce
commit 510d31544f
8 files changed
+105

No files matched your search

@@ -0,0 +1,26 @@
package one.nem.lacerta.model;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("one.nem.lacerta.model.test", appContext.getPackageName());
}
}