Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

27 righe
746 B

  1. package at.ac.perg.htl.bhif16.coffeeapp;
  2. import android.content.Context;
  3. import android.support.test.InstrumentationRegistry;
  4. import android.support.test.runner.AndroidJUnit4;
  5. import org.junit.Test;
  6. import org.junit.runner.RunWith;
  7. import static org.junit.Assert.*;
  8. /**
  9. * Instrumented test, which will execute on an Android device.
  10. *
  11. * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
  12. */
  13. @RunWith(AndroidJUnit4.class)
  14. public class ExampleInstrumentedTest {
  15. @Test
  16. public void useAppContext() {
  17. // Context of the app under test.
  18. Context appContext = InstrumentationRegistry.getTargetContext();
  19. assertEquals("at.ac.perg.htl.bhif16.coffeeapp", appContext.getPackageName());
  20. }
  21. }