From 5a6750337868f7c92baa65d2118ac7ecc84f6010 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 16 Apr 2019 11:36:36 +0200 Subject: JNI templates --- .../androidTest/kotlin/InstrumentedAkonoTests.kt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 library/src/androidTest/kotlin/InstrumentedAkonoTests.kt (limited to 'library/src/androidTest') diff --git a/library/src/androidTest/kotlin/InstrumentedAkonoTests.kt b/library/src/androidTest/kotlin/InstrumentedAkonoTests.kt new file mode 100644 index 00000000..b5ea0111 --- /dev/null +++ b/library/src/androidTest/kotlin/InstrumentedAkonoTests.kt @@ -0,0 +1,21 @@ +package akono.test; + +import androidx.test.ext.junit.runners.AndroidJUnit4 +import org.junit.runner.RunWith +import org.junit.Test +import androidx.test.filters.SmallTest +import androidx.test.filters.LargeTest +import org.junit.Assert.assertTrue +import org.junit.Assert.assertEquals +import akono.AkonoJni + +// @RunWith is required only if you use a mix of JUnit3 and JUnit4. +@RunWith(AndroidJUnit4::class) +@LargeTest +public class InstrumentedAkonoTestOne { + @Test + fun myAkonoTest() { + val ajni: AkonoJni = AkonoJni() + assertEquals("foo", ajni.stringFromJNI()) + } +} -- cgit v1.2.3