程序包 org.antlr.gunit
接口 ITestCase
-
- 所有已知实现类:
AbstractTest
,BooleanTest
,OutputTest
,ReturnTest
public interface ITestCase
ITestCase object locates one test case in a gUnit script by specifying the tested rule and the index number of the test case in that group. For example: ---------------------- ... varDef: "int i;" OK "float 2f;" FAIL ... ---------------------- The "testedRuleName" for these two test cases will be "varDef". The "index" for the "int"-test will be 0. The "index" for the "float"-test will be 1. And so on.- 另请参阅:
ITestSuite
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 int
getTestCaseIndex()
Get the index of the test case in the test group for a rule.java.lang.String
getTestedRuleName()
Get the name of the rule that is tested by this test case.
-
-
-
方法详细资料
-
getTestedRuleName
java.lang.String getTestedRuleName()
Get the name of the rule that is tested by this test case.- 返回:
- name of the tested rule.
-
getTestCaseIndex
int getTestCaseIndex()
Get the index of the test case in the test group for a rule. Starting from 0.- 返回:
- index number of the test case.
-
-