org.jboss.jrunit.extensions
Class SerializableTestFailure

java.lang.Object
  extended by junit.framework.TestFailure
      extended by org.jboss.jrunit.extensions.SerializableTestFailure
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class SerializableTestFailure
extends junit.framework.TestFailure
implements java.io.Externalizable

Author:
Tom Elrod
See Also:
Serialized Form

Constructor Summary
SerializableTestFailure()
           
SerializableTestFailure(junit.framework.Test failedTest, java.lang.Throwable throwableException, java.lang.String testClass)
           
 
Method Summary
 java.lang.String exceptionMessage()
           
 junit.framework.Test failedTest()
           
 boolean isFailure()
           
 void readExternal(java.io.ObjectInput in)
          The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.
 java.lang.Throwable thrownException()
          Gets the thrown exception.
 java.lang.String toString()
          Returns a short description of the failure.
 java.lang.String trace()
           
 void writeExternal(java.io.ObjectOutput out)
          The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializableTestFailure

public SerializableTestFailure()

SerializableTestFailure

public SerializableTestFailure(junit.framework.Test failedTest,
                               java.lang.Throwable throwableException,
                               java.lang.String testClass)
Method Detail

failedTest

public junit.framework.Test failedTest()
Overrides:
failedTest in class junit.framework.TestFailure

thrownException

public java.lang.Throwable thrownException()
Gets the thrown exception.

Overrides:
thrownException in class junit.framework.TestFailure

toString

public java.lang.String toString()
Returns a short description of the failure.

Overrides:
toString in class junit.framework.TestFailure

trace

public java.lang.String trace()
Overrides:
trace in class junit.framework.TestFailure

exceptionMessage

public java.lang.String exceptionMessage()
Overrides:
exceptionMessage in class junit.framework.TestFailure

isFailure

public boolean isFailure()
Overrides:
isFailure in class junit.framework.TestFailure

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
in - the stream to read data from in order to restore the object
Throws:
java.io.IOException - if I/O errors occur
java.lang.ClassNotFoundException - If the class for an object being restored cannot be found.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
out - the stream to write the object to
Throws:
java.io.IOException - Includes any I/O exceptions that may occur


JRunit, a JUnit extension for distributed client/server tests.