org.antlr.stringtemplate.test
Class TestRig

java.lang.Object
  extended by org.antlr.stringtemplate.test.TestRig

public class TestRig
extends java.lang.Object

Terence's own version of a test case. Got sick of trying to figure out the quirks of junit...this is pretty much the same functionality and only took me a few minutes to write. Only missing the gui I guess from junit. This class is the main testing rig. It executes all the tests within a TestSuite. Invoke like this: $ java org.antlr.test.unit.TestRig yourTestSuiteClassName {any-testMethod} $ java org.antlr.test.unit.TestRig org.antlr.test.TestIntervalSet $ java org.antlr.test.unit.TestRig org.antlr.test.TestIntervalSet testNotSet Another benefit to building my own test rig is that users of ANTLR or any of my other software don't have to download yet another package to make this code work. Reducing library dependencies is good. Also, I can make this TestRig specific to my needs, hence, making me more productive.


Field Summary
protected  java.lang.Class testCaseClass
           
 
Constructor Summary
TestRig()
           
 
Method Summary
static void main(java.lang.String[] args)
          Testing program
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testCaseClass

protected java.lang.Class testCaseClass
Constructor Detail

TestRig

public TestRig()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Testing program

Throws:
java.lang.Exception


Copyright ? 2006-2009 Terence Parr