Added in API level 1
Deprecated in API level 16

ComparisonFailure


open class ComparisonFailure : AssertionFailedError
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Error
   ↳ android.test.AssertionFailedError
   ↳ android.test.ComparisonFailure

Thrown when an assert equals for Strings failed.

Summary

Public constructors
ComparisonFailure(message: String!, expected: String!, actual: String!)

Properties
open String?

Public constructors

ComparisonFailure

Added in API level 1
ComparisonFailure(
    message: String!,
    expected: String!,
    actual: String!)

Properties

message

Added in API level 1
open val message: String?
Return
String? the detail message string of this Throwable instance (which may be null).