Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RunWith(RobolectricTestRunner::class)
- @Config(constants = BuildConfig::class,
- sdk = intArrayOf(21),
- manifest = "AndroidManifest.xml",
- application = RobolectricMdiaLibApplication::class,
- packageName = "ru.secret.id")
- class FooBarTest {
- @Test
- fun MimeType() {
- val type = MimeTypeMap.getSingleton().getMimeTypeFromExtension("pdf")
- assertEquals("application/pdf", type)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement