mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
* Replace showInfoAlert with available DialogUtil method * Remove test case that is no longer relevant
This commit is contained in:
parent
1a8a068552
commit
f56ee50c60
2 changed files with 7 additions and 35 deletions
|
|
@ -233,26 +233,6 @@ class UploadActivityUnitTests {
|
|||
method.invoke(activity)
|
||||
}
|
||||
|
||||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testShowInfoAlert() {
|
||||
val method: Method = UploadActivity::class.java.getDeclaredMethod(
|
||||
"showInfoAlert",
|
||||
Int::class.java,
|
||||
Int::class.java,
|
||||
Runnable::class.java,
|
||||
Array<String>::class.java
|
||||
)
|
||||
method.isAccessible = true
|
||||
method.invoke(
|
||||
activity,
|
||||
R.string.block_notification_title,
|
||||
R.string.block_notification,
|
||||
mock(Runnable::class.java),
|
||||
arrayOf("")
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testOnNextButtonClicked() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue