You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
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. }