Projekt Schafkopfpunktezähler: Erster Prototyp einer App, die dem Benutzer die Notwendigkeit des Punktezählens beim Schafkopfspiel abnimmt.
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.

ExampleInstrumentedTest.java 736B

1234567891011121314151617181920212223242526
  1. package project.schafkopfzaehler_2;
  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("project.schafkopfzaehler_2", appContext.getPackageName());
  20. }
  21. }