Yet Another OTP generator
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ExampleInstrumentedTest.kt 660B

123456789101112131415161718192021222324
  1. package com.chameth.yaotp
  2. import android.support.test.InstrumentationRegistry
  3. import android.support.test.runner.AndroidJUnit4
  4. import org.junit.Test
  5. import org.junit.runner.RunWith
  6. import org.junit.Assert.*
  7. /**
  8. * Instrumented test, which will execute on an Android device.
  9. *
  10. * See [testing documentation](http://d.android.com/tools/testing).
  11. */
  12. @RunWith(AndroidJUnit4::class)
  13. class ExampleInstrumentedTest {
  14. @Test
  15. fun useAppContext() {
  16. // Context of the app under test.
  17. val appContext = InstrumentationRegistry.getTargetContext()
  18. assertEquals("com.chameth.yaotp", appContext.packageName)
  19. }
  20. }