mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Migrate Feedback module from Java to Kt (#5985)
* Rename `.java` to `.kt` * Migrated FeedbackContentCreator to kotlin * Rename FeedbackDialog from `java` to `kt` * Migrated Feedback Dialog from `java` to `kt` * Renamed OnFeedbackSubmitCallback to kotlij * Migrated OnFeedbackSubmitCallback to kotlin * Fixed: TestCase Failure * Fixed Test : Changed Private Modifier to Public * Suppressed deprecated and added TODO for lint * Linked Deprecation with Github Issue * Rename Feedback from java to kt * Migrated Feedback Data Class to Kotlin * Modified the data class to var for mutuability
This commit is contained in:
parent
015c5d5c63
commit
64fd10d00e
10 changed files with 252 additions and 387 deletions
|
|
@ -34,7 +34,7 @@ class FeedbackDialogTests {
|
|||
private lateinit var dialogFeedbackBinding: DialogFeedbackBinding
|
||||
|
||||
@Mock
|
||||
private val onFeedbackSubmitCallback: OnFeedbackSubmitCallback? = null
|
||||
private lateinit var onFeedbackSubmitCallback: OnFeedbackSubmitCallback
|
||||
private lateinit var dialog: FeedbackDialog
|
||||
|
||||
private lateinit var context: Context
|
||||
|
|
@ -53,7 +53,7 @@ class FeedbackDialogTests {
|
|||
dialog.show()
|
||||
|
||||
Whitebox.setInternalState(dialog, "onFeedbackSubmitCallback", onFeedbackSubmitCallback)
|
||||
Whitebox.setInternalState(dialog, "dialogFeedbackBinding", dialogFeedbackBinding)
|
||||
Whitebox.setInternalState(dialog, "_binding", dialogFeedbackBinding)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue