Add test for error alert dialog to UploadCategoriesFragment unit tests

This commit is contained in:
Ted Gilbert 2025-10-25 10:24:49 +11:00
parent 0a6e7079b8
commit b988460a41

View file

@ -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() {