Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. @RunWith(RobolectricTestRunner::class)
  2. @Config(constants = BuildConfig::class,
  3. sdk = intArrayOf(21),
  4. manifest = "AndroidManifest.xml",
  5. application = RobolectricMdiaLibApplication::class,
  6. packageName = "ru.secret.id")
  7.  
  8. class FooBarTest {
  9. @Test
  10. fun MimeType() {
  11. val type = MimeTypeMap.getSingleton().getMimeTypeFromExtension("pdf")
  12. assertEquals("application/pdf", type)
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement