aboutsummaryrefslogtreecommitdiff
path: root/java/org/brotli/wrapper/android/UseJniTest.java
blob: 16782fcd18f09af0c0ee70b6b35626ffdd17202d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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());
  }
}