public class

ComparisonFailure

extends AssertionFailedError
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Error
       ↳ android.test.AssertionFailedError
         ↳ android.test.ComparisonFailure

Class Overview

Thrown when an assert equals for Strings failed. Note: Most users of this class should simply use junit.framework.ComparisonFailure, which provides the same functionality at a lighter weight.

Summary

Public Constructors
ComparisonFailure(String message, String expected, String actual)
Public Methods
String getMessage()
Returns the extra information message which was provided when this Throwable was created.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ComparisonFailure (String message, String expected, String actual)

Since: API Level 1

Public Methods

public String getMessage ()

Since: API Level 1

Returns the extra information message which was provided when this Throwable was created. Returns null if no message was provided at creation time.

Returns
  • this Throwable's detail message.