org.antlr.gunit
Interface ITestCase

All Known Implementing Classes:
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.

See Also:
ITestSuite

Method Summary
 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.
 

Method Detail

getTestedRuleName

java.lang.String getTestedRuleName()
Get the name of the rule that is tested by this test case.

Returns:
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.

Returns:
index number of the test case.


Copyright © 2011. All Rights Reserved.