|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
tcl.lang.TclCmdTest
public class TclCmdTest
Field Summary | |
---|---|
static String |
EXEC_NAME
|
static String |
SHELL
|
static Class |
SHELL_CLASS
|
static String |
TCLTEST_NAMEOFEXECUTABLE
|
static String |
TCLTEST_VERBOSE
|
Constructor Summary | |
---|---|
TclCmdTest()
|
Method Summary | |
---|---|
protected tcl.lang.Interp |
getInterp()
|
void |
setUp()
|
void |
tclTestCode(String code)
Execute code, print results. |
void |
tclTestResource(String resName)
Test a Tcl test file resource. |
void |
tclTestResource(String resName,
List expectedFailureCases)
Test a Tcl test file resource. |
void |
tclTestResource(String preTestCode,
String resName,
List expectedFailureCases)
Test a Tcl test file resource. |
void |
tclTestResourceIgnoreFailures(String resName)
Test a Tcl test file resource, test file is assumed to 'package require tcltest'. |
void |
tearDown()
|
void |
test()
Dummy test method to keep JUnit happy. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String EXEC_NAME
public static final Class SHELL_CLASS
public static final String SHELL
public static final String TCLTEST_VERBOSE
public static String TCLTEST_NAMEOFEXECUTABLE
Constructor Detail |
---|
public TclCmdTest()
Method Detail |
---|
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void tearDown()
tearDown
in class junit.framework.TestCase
public void tclTestCode(String code) throws Exception
code
-
Exception
public void tclTestResourceIgnoreFailures(String resName) throws Exception
resName
- The name of a tcltest file as a resource path.
Exception
public void tclTestResource(String resName) throws Exception
resName
- The name of a tcltest file as a resource path.
Exception
public void tclTestResource(String resName, List expectedFailureCases) throws Exception
resName
- The name of a tcltest file as a resource path.expectedFailureCases
- The list of expected test case failures (List of String).
Exception
public void tclTestResource(String preTestCode, String resName, List expectedFailureCases) throws Exception
preTestCode
- A string of Tcl code to evaluate before running the test case. Hint:
use TCLTEST_VERBOSE to show progress of tcl test cases.resName
- The name of a tcltest file as a resource path.expectedFailureCases
- The list of expected test case failures (List of String).
Exception
public void test() throws Exception
Exception
protected tcl.lang.Interp getInterp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |