diff options
Diffstat (limited to 'java/org/brotli/wrapper/android/UseJniTest.java')
-rw-r--r-- | java/org/brotli/wrapper/android/UseJniTest.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/java/org/brotli/wrapper/android/UseJniTest.java b/java/org/brotli/wrapper/android/UseJniTest.java new file mode 100644 index 0000000..16782fc --- /dev/null +++ b/java/org/brotli/wrapper/android/UseJniTest.java @@ -0,0 +1,23 @@ +package org.brotli.wrapper.android; + +import static junit.framework.Assert.assertEquals; + +import androidx.test.core.app.ApplicationProvider; +import com.google.thirdparty.robolectric.GoogleRobolectricTestRunner; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(GoogleRobolectricTestRunner.class) +public final class UseJniTest { + + @Before + public void setup() { + JniHelper.context = ApplicationProvider.getApplicationContext(); + } + + @Test + public void testAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything() { + assertEquals(42, UseJni.deepThought()); + } +} |