mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 05:05:31 +03:00
SendFilesDialogTest: assert adapter is not null
Just in case Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
9d856da33a
commit
53feb14714
1 changed files with 4 additions and 2 deletions
|
@ -80,7 +80,8 @@ class SendFilesDialogTest : AbstractIT() {
|
|||
fun showDialog() {
|
||||
val sut = showDialog(FILES_SAME_TYPE)
|
||||
val recyclerview: RecyclerView = sut.requireDialog().findViewById(R.id.send_button_recycler_view)
|
||||
Assert.assertNotEquals("Send button list is empty", 0, recyclerview.adapter?.itemCount)
|
||||
Assert.assertNotNull("Adapter is null", recyclerview.adapter)
|
||||
Assert.assertNotEquals("Send button list is empty", 0, recyclerview.adapter!!.itemCount)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -94,7 +95,8 @@ class SendFilesDialogTest : AbstractIT() {
|
|||
fun showDialogDifferentTypes() {
|
||||
val sut = showDialog(FILES_MIXED_TYPE)
|
||||
val recyclerview: RecyclerView = sut.requireDialog().findViewById(R.id.send_button_recycler_view)
|
||||
Assert.assertNotEquals("Send button list is empty", 0, recyclerview.adapter?.itemCount)
|
||||
Assert.assertNotNull("Adapter is null", recyclerview.adapter)
|
||||
Assert.assertNotEquals("Send button list is empty", 0, recyclerview.adapter!!.itemCount)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue