|
@@ -32,6 +32,7 @@ class AuthenticatorActivityIT {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
+ @Suppress("TooGenericExceptionCaught")
|
|
|
fun tryCatch() {
|
|
|
val color = try {
|
|
|
Color.parseColor("1")
|
|
@@ -43,6 +44,7 @@ class AuthenticatorActivityIT {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
+ @Suppress("TooGenericExceptionCaught")
|
|
|
fun tryCatch2() {
|
|
|
val color = try {
|
|
|
Color.parseColor("")
|
|
@@ -54,6 +56,7 @@ class AuthenticatorActivityIT {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
+ @Suppress("TooGenericExceptionCaught")
|
|
|
fun tryCatch3() {
|
|
|
val color = try {
|
|
|
Color.parseColor(null)
|
|
@@ -65,6 +68,7 @@ class AuthenticatorActivityIT {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
+ @Suppress("TooGenericExceptionCaught")
|
|
|
fun tryCatch4() {
|
|
|
val color = try {
|
|
|
Color.parseColor("abc")
|