mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
correction
This commit is contained in:
parent
5964fe5d16
commit
36bfeacb18
1 changed files with 4 additions and 5 deletions
|
|
@ -115,11 +115,10 @@ class ContributionViewHolderUnitTests {
|
|||
@Throws(Exception::class)
|
||||
fun testDisplayWikipediaButton() {
|
||||
Shadows.shadowOf(Looper.getMainLooper()).idle()
|
||||
val method: Method =
|
||||
ContributionViewHolder::class.java.getDeclaredMethod(
|
||||
"displayWikipediaButton",
|
||||
Boolean::class.javaObjectType,
|
||||
)
|
||||
val method: Method = ContributionViewHolder::class.java.getDeclaredMethod(
|
||||
"displayWikipediaButton",
|
||||
Boolean::class.javaPrimitiveType
|
||||
)
|
||||
method.isAccessible = true
|
||||
method.invoke(contributionViewHolder, false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue