avrora.test
Class TestCase

java.lang.Object
  extended byavrora.test.TestCase
Direct Known Subclasses:
TestCase.ExpectCompilationError, TestCase.Malformed

public abstract class TestCase
extends java.lang.Object

The TestCase class encapsulates the notion of a test case in the automated testing framework.


Nested Class Summary
static class TestCase.ExpectCompilationError
           
static class TestCase.Malformed
           
 
Field Summary
 java.lang.String filename
           
protected  java.util.Properties properties
           
 
Constructor Summary
TestCase(java.lang.String fname, java.util.Properties props)
           
 
Method Summary
 java.lang.String getFileName()
           
 TestResult match(java.lang.Throwable t)
           
abstract  void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filename

public final java.lang.String filename

properties

protected final java.util.Properties properties
Constructor Detail

TestCase

public TestCase(java.lang.String fname,
                java.util.Properties props)
Method Detail

getFileName

public java.lang.String getFileName()

run

public abstract void run()
                  throws java.lang.Exception
Throws:
java.lang.Exception

match

public TestResult match(java.lang.Throwable t)