blob: 6a59d0ef8474b561e3f74cc43ee5eed1f6c9128d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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())
}
@Test
fun myJsTest() {
val ajni: AkonoJni = AkonoJni()
assertEquals("2", ajni.evalJs("1+1"));
}
}
|