com.sun.maven.junit
Class Result.Failure

java.lang.Object
  extended by com.sun.maven.junit.Result.Failure
All Implemented Interfaces:
Serializable, junit.framework.Test
Enclosing class:
Result

public static class Result.Failure
extends Object
implements Serializable, junit.framework.Test

Represents an error or a failure.

This implements Test for masquarading as a test to TestResult.

See Also:
Serialized Form

Field Summary
 Throwable cause
           
 String name
           
 
Constructor Summary
Result.Failure(String name, Throwable cause)
           
Result.Failure(junit.framework.TestFailure f)
           
 
Method Summary
 int countTestCases()
           
 void run(junit.framework.TestResult result)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final String name

cause

public final Throwable cause
Constructor Detail

Result.Failure

public Result.Failure(String name,
                      Throwable cause)

Result.Failure

public Result.Failure(junit.framework.TestFailure f)
Method Detail

countTestCases

public int countTestCases()
Specified by:
countTestCases in interface junit.framework.Test

run

public void run(junit.framework.TestResult result)
Specified by:
run in interface junit.framework.Test

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.