Package org.openl.rules.testmethod
Class TestSuiteMethod
- java.lang.Object
-
- org.openl.types.impl.AMethod
-
- org.openl.types.impl.ExecutableMethod
-
- org.openl.rules.method.ExecutableRulesMethod
-
- org.openl.rules.testmethod.TestSuiteMethod
-
- All Implemented Interfaces:
INamedThing,IMetaInfo,ITablePropertiesMethod,IMemberMetaInfo,IMethodCaller,IModuleInfo,Invokable,IOpenMember,IOpenMethod,IOpenMethodHeader
public class TestSuiteMethod extends ExecutableRulesMethod
-
-
Field Summary
-
Fields inherited from interface org.openl.base.INamedThing
EMPTY, LONG, REGULAR, SHORT
-
Fields inherited from interface org.openl.types.IOpenMethod
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description TestSuiteMethod(IOpenMethod testedMethod, TestSuiteMethod target)TestSuiteMethod(IOpenMethod testedMethod, IOpenMethodHeader header, TestMethodBoundNode boundNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearForExecutionMode()TestMethodBoundNodegetBoundNode()StringgetColumnDisplayName(int index)StringgetColumnDisplayName(String columnTechnicalName)intgetColumnIndex(String columnName)StringgetColumnName(int index)intgetColumnsCount()ITableModelgetDataModel()BindingDependenciesgetDependencies()int[]getIndices(String ids)intgetNumberOfTestsCases()TestSuiteMethodgetOriginalTestSuiteMethod()StringgetSourceUrl()TestDescriptiongetTest(int numberOfTest)IOpenMethodgetTestedMethod()DynamicObject[]getTestObjects()TestDescription[]getTests()protected TestUnitsResultsinnerInvoke(Object target, Object[] params, IRuntimeEnv env)protected booleanisMethodCacheable()booleanisRunMethod()booleanisRunmethodTestable()Indicates if test method has any row rules for testing target table.voidsetTestedMethod(IOpenMethod testedMethod)-
Methods inherited from class org.openl.rules.method.ExecutableRulesMethod
getInfo, getMethodProperties, getModuleName, getProperties, getSyntaxNode, initProperties, invoke, isAlias, setBoundNode, setModuleName
-
Methods inherited from class org.openl.types.impl.ExecutableMethod
isConstructor, toString
-
Methods inherited from class org.openl.types.impl.AMethod
getDeclaringClass, getDisplayName, getHeader, getMethod, getName, getSignature, getType, isStatic
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openl.meta.IMetaInfo
getDisplayName
-
-
-
-
Constructor Detail
-
TestSuiteMethod
public TestSuiteMethod(IOpenMethod testedMethod, IOpenMethodHeader header, TestMethodBoundNode boundNode)
-
TestSuiteMethod
public TestSuiteMethod(IOpenMethod testedMethod, TestSuiteMethod target)
-
-
Method Detail
-
getOriginalTestSuiteMethod
public TestSuiteMethod getOriginalTestSuiteMethod()
-
getIndices
public int[] getIndices(String ids)
-
getBoundNode
public TestMethodBoundNode getBoundNode()
- Overrides:
getBoundNodein classExecutableRulesMethod
-
getDependencies
public BindingDependencies getDependencies()
-
getNumberOfTestsCases
public int getNumberOfTestsCases()
-
getSourceUrl
public String getSourceUrl()
-
getTestObjects
public DynamicObject[] getTestObjects()
-
getTests
public TestDescription[] getTests()
-
getTest
public TestDescription getTest(int numberOfTest)
-
setTestedMethod
public void setTestedMethod(IOpenMethod testedMethod)
-
getColumnIndex
public int getColumnIndex(String columnName)
-
getColumnName
public String getColumnName(int index)
-
getColumnDisplayName
public String getColumnDisplayName(int index)
-
getColumnsCount
public int getColumnsCount()
-
getTestedMethod
public IOpenMethod getTestedMethod()
-
isMethodCacheable
protected boolean isMethodCacheable()
- Overrides:
isMethodCacheablein classExecutableRulesMethod
-
innerInvoke
protected TestUnitsResults innerInvoke(Object target, Object[] params, IRuntimeEnv env)
- Specified by:
innerInvokein classExecutableRulesMethod
-
isRunMethod
public boolean isRunMethod()
-
isRunmethodTestable
public boolean isRunmethodTestable()
Indicates if test method has any row rules for testing target table. Finds it by field that containsTestMethodHelper.EXPECTED_RESULT_NAMEorTestMethodHelper.EXPECTED_ERROR- Returns:
- true if method expects some return result or some error.
TODO: rename it. it is difficult to understand what is it doing
-
getDataModel
public ITableModel getDataModel()
-
clearForExecutionMode
public void clearForExecutionMode()
- Overrides:
clearForExecutionModein classExecutableRulesMethod
-
-