|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Error junit.framework.AssertionFailedError junit.framework.ComparisonFailure utfx.framework.StringComparisonFailure
public class StringComparisonFailure
String comparison failure. This class extends the JUnit Comparisonailure so that when UTF-X tests are executed directly within JUnit framework then test failures can still be shown in a meaningful way.
Copyright © 2004 - University of Southern Queensland.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
$Source: /cvs/utf-x/framework/src/java/utfx/framework/StringComparisonFailure.java,v $
Field Summary | |
---|---|
private java.lang.String |
diffActual
|
private java.lang.String |
diffExpected
|
private java.lang.String |
failureMessage
failure message |
private java.lang.String |
sameContent
the starting part of the XML content that is the same between expected and actual |
private static long |
serialVersionUID
Comment for serialVersionUID |
Constructor Summary | |
---|---|
StringComparisonFailure(java.lang.String message,
java.lang.String expected,
java.lang.String actual)
Create a new StringComparisonFailure. |
Method Summary | |
---|---|
java.lang.String |
getDiffActual()
|
java.lang.String |
getDiffExpected()
|
java.lang.String |
getMessage()
|
java.lang.String |
getSameContent()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
serialVersionUID
private java.lang.String failureMessage
private java.lang.String sameContent
private java.lang.String diffExpected
private java.lang.String diffActual
Constructor Detail |
---|
public StringComparisonFailure(java.lang.String message, java.lang.String expected, java.lang.String actual)
message
- expected
- actual
- Method Detail |
---|
public java.lang.String getMessage()
getMessage
in class junit.framework.ComparisonFailure
public java.lang.String getDiffActual()
public java.lang.String getDiffExpected()
public java.lang.String getSameContent()
|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |