ITestCase
BooleanTest
, OutputTest
, ReturnTest
public abstract class AbstractTest extends Object implements ITestCase
Modifier and Type | Field | Description |
---|---|---|
protected String |
actual |
|
protected boolean |
hasErrorMsg |
|
protected String |
header |
Constructor | Description |
---|---|
AbstractTest() |
Modifier and Type | Method | Description |
---|---|---|
String |
getActual() |
|
String |
getActualResult() |
|
abstract String |
getExpected() |
|
String |
getExpectedResult() |
|
String |
getHeader() |
|
abstract String |
getResult(gUnitTestResult testResult) |
|
int |
getTestCaseIndex() |
Get the index of the test case in the test group for a rule.
|
String |
getTestedRuleName() |
Get the name of the rule that is tested by this test case.
|
abstract String |
getText() |
|
abstract int |
getType() |
|
void |
setActual(String actual) |
|
void |
setHeader(String rule,
String lexicalRule,
String treeRule,
int numOfTest,
int line,
String input) |
|
void |
setTestCaseIndex(int testCaseIndex) |
|
void |
setTestedRuleName(String testedRuleName) |
protected String header
protected String actual
protected boolean hasErrorMsg
public abstract int getType()
public abstract String getText()
public abstract String getExpected()
public String getExpectedResult()
public abstract String getResult(gUnitTestResult testResult)
public String getHeader()
public String getActual()
public String getActualResult()
public String getTestedRuleName()
ITestCase
getTestedRuleName
in interface ITestCase
public int getTestCaseIndex()
ITestCase
getTestCaseIndex
in interface ITestCase
public void setHeader(String rule, String lexicalRule, String treeRule, int numOfTest, int line, String input)
public void setActual(String actual)
public void setTestedRuleName(String testedRuleName)
public void setTestCaseIndex(int testCaseIndex)
Copyright © 1992–2018 ANTLR. All rights reserved.