avrora.test
Class TestResult

java.lang.Object
  extended byavrora.test.TestResult
Direct Known Subclasses:
TestResult.Malformed, TestResult.TestFailure, TestResult.TestSuccess

public abstract class TestResult
extends java.lang.Object

The TestResult class represents the result of running a test cases. The test run could succeed, it could cause an internal error, an unexpected exception (e.g. java.lang.NullPointerException), or it could generate an expected error such as a compilation error (for testing generation of error messages).


Nested Class Summary
static class TestResult.ExpectedError
           
static class TestResult.ExpectedPass
           
static class TestResult.IncorrectError
           
static class TestResult.InternalError
           
static class TestResult.Malformed
           
static class TestResult.TestFailure
           
static class TestResult.TestSuccess
           
static class TestResult.UnexpectedException
           
 
Constructor Summary
TestResult()
           
 
Method Summary
 boolean isInternalError()
           
 boolean isMalformed()
           
 boolean isSuccess()
           
 boolean isUnexpectedException()
           
 void longReport()
           
abstract  void shortReport()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResult

public TestResult()
Method Detail

shortReport

public abstract void shortReport()

isSuccess

public boolean isSuccess()

isInternalError

public boolean isInternalError()

isUnexpectedException

public boolean isUnexpectedException()

isMalformed

public boolean isMalformed()

longReport

public void longReport()