TUM CCSM Commons

edu.tum.cs.commons.test
Class TestletBase

java.lang.Object
  extended by TestCase
      extended by edu.tum.cs.commons.test.CCSMTestCaseBase
          extended by edu.tum.cs.commons.test.TestletBase

public abstract class TestletBase
extends CCSMTestCaseBase

Base class for testlets. Testlets are junit test cases that are part of a test suite. We use them for smoke tests.

A testlet must pass the name of its test method to its base class in its constructor. This constraint comes from JUnit. It is easy to screw up!. This base class enforces this constraint, so its harder to violate it.

Deriving classes can be annotated with the attribute Ignore to tell the JUnit runner not to execute them outside a smoke test. (Unfortunately, the attribute does not get inherited, so it is not sufficient to annotate this class.)

Version:
$Rev: 26283 $
Author:
juergens, $Author: juergens $
Rating:
GREEN Hash: 1223984C9A6D6AA5FF32B1AAB9B537E4

Constructor Summary
protected TestletBase()
          Default constructor
 
Method Summary
abstract  void test()
          Template method: Deriving classes override it with their test
 
Methods inherited from class edu.tum.cs.commons.test.CCSMTestCaseBase
canonize, createCanonicalTmpFile, createTmpFile, deleteTmpDirectory, getTmpDirectory, is64BitVM, printStatistics, printUnusedFiles, printUsedFiles, useCanonicalTestFile, useTestFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestletBase

protected TestletBase()
Default constructor

Method Detail

test

public abstract void test()
                   throws java.lang.Exception
Template method: Deriving classes override it with their test

Throws:
java.lang.Exception

TUM CCSM Commons

TUM CCSM Commons - 2.7