Skip to content

Commit eaec97a

Browse files
committed
add tests
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent bf8d9c6 commit eaec97a

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

app/src/androidTest/java/com/owncloud/android/utils/SnackbarTests.kt

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class SnackbarTests {
9090
}
9191

9292
@Test
93-
fun testNullFragmentSnackbar_doesNotCrash() {
93+
fun testNullFragmentSnackbarShouldNotCrash() {
9494
DisplayUtils.showSnackMessage(null as Fragment?, R.string.app_name)
9595
}
9696

@@ -139,25 +139,4 @@ class SnackbarTests {
139139
assertSnackbarVisible(message)
140140
}
141141
}
142-
143-
@Test
144-
fun testActivityStringResWithFormatArgsSnackbar() {
145-
launchActivity<TestActivity>().use { scenario ->
146-
scenario.onActivity { sut ->
147-
DisplayUtils.showSnackMessage(sut, R.string.app_name)
148-
}
149-
assertSnackbarVisible(R.string.app_name)
150-
}
151-
}
152-
153-
@Test
154-
fun testContextViewStringResWithFormatArgsSnackbar() {
155-
launchActivity<TestActivity>().use { scenario ->
156-
scenario.onActivity { sut ->
157-
val contentView = sut.findViewById<android.view.View>(android.R.id.content)
158-
DisplayUtils.showSnackMessage(sut, contentView, R.string.app_name)
159-
}
160-
assertSnackbarVisible(R.string.app_name)
161-
}
162-
}
163142
}

0 commit comments

Comments
 (0)