mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add test for error alert dialog to UploadCategoriesFragment unit tests
This commit is contained in:
parent
0a6e7079b8
commit
b988460a41
1 changed files with 7 additions and 0 deletions
|
|
@ -153,6 +153,13 @@ class UploadCategoriesFragmentUnitTests {
|
||||||
fragment.showError(R.string.no_categories_found)
|
fragment.showError(R.string.no_categories_found)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Throws(Exception::class)
|
||||||
|
fun testShowErrorDialog() {
|
||||||
|
Shadows.shadowOf(Looper.getMainLooper()).idle()
|
||||||
|
fragment.showErrorDialog("")
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testSetCategoriesCaseNull() {
|
fun testSetCategoriesCaseNull() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue