junit.framework
クラス ComparisonFailure

java.lang.Object
  拡張java.lang.Throwable
      拡張java.lang.Error
          拡張junit.framework.AssertionFailedError
              拡張junit.framework.ComparisonFailure
すべての実装インタフェース:
java.io.Serializable

public class ComparisonFailure
extends AssertionFailedError

Thrown when an assert equals for Strings failed. Inspired by a patch from Alex Chaffee mailto:alex@purpletech.com

関連項目:
直列化された形式

コンストラクタの概要
ComparisonFailure(java.lang.String message, java.lang.String expected, java.lang.String actual)
          Constructs a comparison failure.
 
メソッドの概要
 java.lang.String getMessage()
          Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.
 
クラス java.lang.Throwable から継承したメソッド
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ComparisonFailure

public ComparisonFailure(java.lang.String message,
                         java.lang.String expected,
                         java.lang.String actual)
Constructs a comparison failure.

パラメータ:
message - the identifying message or null
expected - the expected string value
actual - the actual string value
メソッドの詳細

getMessage

public java.lang.String getMessage()
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.

関連項目:
Throwable.getMessage()


Copyright © 2001-2004 JUnit.org. All Rights Reserved.