public interface IJUnitTestAPI
| Modifier and Type | Method and Description |
|---|---|
void |
displayMismatchedTestNodes(int aiTestsheetIndex,
boolean abExpected)
Send a report of mismatched TestNodes to the system output stream.
|
void |
displayRuleMessages(int aiTestsheetIndex)
Display Rule Messages associated with the specified Testsheet.
|
void |
displayValidationMessageKeys()
Send all validation message keys associated with the loaded Ruletest asset to the
system output stream.
|
void |
displayValidationMessageKeys(int aiTestsheetIndex)
Send validation message keys associated with specified Testsheet to the
system output stream.
|
void |
displayValidationMessages()
Send all validation messages associated with the loaded Ruletest asset to the
system output stream.
|
void |
displayValidationMessages(int aiTestsheetIndex)
Send validation messages associated with specified Testsheet to the
system output stream.
|
void |
dispose()
Dispose of this API to free up memory.
|
java.lang.String |
formatTestNodeString(com.corticon.rulesemf.viewtestmodel.testsheet.treeset.TestNode aTestNode,
boolean abIncludeIssues)
Return a string representation of the specified TestNode.
|
java.util.List<com.corticon.rulesemf.viewtestmodel.testsheet.treeset.TestNode> |
getMismatchedTestNodes(int aiTestsheetIndex,
boolean abExpected)
Return a list consisting of TestNode instances that are implicated in mismatches
between Output and Expected trees.
|
java.util.List<java.lang.String> |
getRuleMessages(int aiTestsheetIndex)
Return a list of localized Rule Messages from the specified Testsheet.
|
IRuletestTabFolderModelAPI |
getRuletestTabFolderModelAPI()
Return a reference to the Ruletest Tab Folder API.
|
int |
getTestsheetCount()
Return the count of the number of Testsheets in the loaded
Ruletest asset.
|
int |
getTestsheetIndex(java.lang.String astrTestsheetName)
Return the index of the Testsheet bearing the specified name
|
java.lang.String |
getTestsheetName(int aiTestsheetIndex)
Return the name of the Testsheet identified by the specified index.
|
ITestsheetTreeSetModelAPI |
getTestsheetTreeSetModelAPI()
Return a reference to the Testsheet Tree Set API.
|
java.util.List<java.lang.String> |
getValidationMessageKeys()
Return a list of all validation message keys in the Ruletest asset.
|
java.util.List<java.lang.String> |
getValidationMessageKeys(int aiTestsheetIndex)
Return the list of validation message keys associated with the specified Testsheet.
|
java.util.List<java.lang.String> |
getValidationMessages()
Return a list of all validation messages in the Ruletest asset.
|
java.util.List<java.lang.String> |
getValidationMessages(int aiTestsheetIndex)
Return the list of validation messages associated with the specified Testsheet.
|
boolean |
isMismatch()
Determine whether there is a mismatch between the Output Tree and Expected Tree.
|
boolean |
isMismatch(int aiTestsheetIndex)
Determine whether there is a mismatch between the Output Tree and Expected Tree.
|
boolean |
isValidationMessagePresent(int aiTestsheetIndex,
java.lang.String astrMessageKey)
Determine whether the specified validation message exists in the specified
Testsheet.
|
boolean |
isValidationMessagePresent(java.lang.String astrMessageKey)
Determine whether the specified validation message exists in the entire Ruletest asset.
|
org.eclipse.emf.ecore.resource.Resource |
loadRuletest(org.eclipse.emf.common.util.URI aURIRuletest)
Load the specified Ruletest asset for testing.
|
boolean |
runAllTests()
Run all Testsheets.
|
boolean |
runTest(int aiTestsheetIndex)
Run the specified Testsheet.
|
void displayMismatchedTestNodes(int aiTestsheetIndex,
boolean abExpected)
aiTestsheetIndex - Zero-based index of Testsheet.void displayRuleMessages(int aiTestsheetIndex)
aiTestsheetIndex - Zero-based index of Testsheet.void displayValidationMessageKeys()
void displayValidationMessageKeys(int aiTestsheetIndex)
aiTestsheetIndex - Zero-based index of Testsheet.void displayValidationMessages()
void displayValidationMessages(int aiTestsheetIndex)
aiTestsheetIndex - Zero-based index of Testsheet.void dispose()
java.lang.String formatTestNodeString(com.corticon.rulesemf.viewtestmodel.testsheet.treeset.TestNode aTestNode,
boolean abIncludeIssues)
aTestNode - TestNode instance.abIncludeIssues - true to include mismatch issues.java.util.List<com.corticon.rulesemf.viewtestmodel.testsheet.treeset.TestNode> getMismatchedTestNodes(int aiTestsheetIndex,
boolean abExpected)
Both Output and Expected TestNode instances are flagged as "passed" or "not passed" meaning that there is some mismatch between Output and Expected trees (see TestNode.isPassed()).
Output TestNode instances may also be flagged with ValidationIssue EXTRA (i.e., the TestNode is in the Output Tree but doesn't have a corresponding Expected TreeNode). See TestNode.getValidationIssue().
Expected TestNode instances may also be flagged with ValidationIssue MISSING (i.e., the TestNode is in the Expected tree but doesn't have a corresponding Output TreeNode. See TestNode.getValidationIssue().
TestNode instances marked not "passed" and ValidationIssue UNSPECIFIED appear in both Output and Expected trees but have different data values.
aiTestsheetIndex - Zero-based index of Testsheet.abExpected - true to return nodes from Expected Tree.java.util.List<java.lang.String> getRuleMessages(int aiTestsheetIndex)
aiTestsheetIndex - Zero-based index of Testsheet.IRuletestTabFolderModelAPI getRuletestTabFolderModelAPI()
int getTestsheetCount()
int getTestsheetIndex(java.lang.String astrTestsheetName)
astrTestsheetName - Name of the Testsheet.java.lang.String getTestsheetName(int aiTestsheetIndex)
aiTestsheetIndex - Zero-based index of the Testsheet.null.ITestsheetTreeSetModelAPI getTestsheetTreeSetModelAPI()
java.util.List<java.lang.String> getValidationMessageKeys()
java.util.List<java.lang.String> getValidationMessageKeys(int aiTestsheetIndex)
aiTestsheetIndex - Zero-based index of Testsheet.java.util.List<java.lang.String> getValidationMessages()
java.util.List<java.lang.String> getValidationMessages(int aiTestsheetIndex)
aiTestsheetIndex - Zero-based index of Testsheet.boolean isMismatch()
true if any Output Tree doesn't match the corresponding Expected Tree.boolean isMismatch(int aiTestsheetIndex)
aiTestsheetIndex - Zero-based index of the Testsheet to test.true if Output Tree doesn't match the Expected Tree.boolean isValidationMessagePresent(int aiTestsheetIndex,
java.lang.String astrMessageKey)
aiTestsheetIndex - Index of Testsheet.astrMessageKey - Key of validation message.true if validation message exists in the Testsheet.boolean isValidationMessagePresent(java.lang.String astrMessageKey)
astrMessageKey - Key of validation message.true if validation message exists in the Ruletest asset.org.eclipse.emf.ecore.resource.Resource loadRuletest(org.eclipse.emf.common.util.URI aURIRuletest)
aURIRuletest - EMF URI of Ruletest asset.boolean runAllTests()
throws java.lang.Exception
true if all Testsheets execute successfully.java.lang.Exceptionboolean runTest(int aiTestsheetIndex)
throws java.lang.Exception
aiTestsheetIndex - Zero-based index of the Testsheet to run.true if the Testsheet execution was successful.java.lang.ExceptionCopyright © 2005-2016 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.