private void updateDependency(BindingDependencies bindingDependencies) { IOpenMethod testedMethod = getTestedMethod(); if (testedMethod instanceof ExecutableRulesMethod || testedMethod instanceof OpenMethodDispatcher) { bindingDependencies.addMethodDependency(testedMethod, getBoundNode()); } }
private void initializeTestData() { if (descriptors == null) { testObjects = (DynamicObject[]) getBoundNode().getField().getData(); descriptors = getBoundNode().getTable().getDataModel().getDescriptor(); } }
public Integer getRowIndex() { if (runnableTestMethods.length > 0 && !runnableTestMethods[0].hasId()) { if (method instanceof TestSuiteMethod) { TestMethodBoundNode boundNode = ((TestSuiteMethod) method).getBoundNode(); if (boundNode != null && !boundNode.getTable().getHeaderTable().isNormalOrientation()) { // Currently row indexes aren't supported for transposed test tables return null; } } return table.getGridTable().getHeight() - runnableTestMethods.length + 1; } return null; }
public Integer getRowIndex() { if (runnableTestMethods.length > 0 && !runnableTestMethods[0].hasId()) { if (method instanceof TestSuiteMethod) { TestMethodBoundNode boundNode = ((TestSuiteMethod) method).getBoundNode(); if (boundNode != null && !boundNode.getTable().getHeaderTable().isNormalOrientation()) { // Currently row indexes aren't supported for transposed test tables return null; } } return table.getGridTable().getHeight() - runnableTestMethods.length + 1; } return null; }
public TestSuiteMethod(IOpenMethod testedMethod, TestSuiteMethod copy) { super(copy.getHeader(), copy.getBoundNode()); db = copy.db; this.testedMethod = testedMethod; initProperties(copy.getMethodProperties()); this.runmethod = copy.isRunmethod(); this.testObjects = copy.getTestObjects(); this.descriptors = copy.getDescriptors(); this.setUri(copy.getUri()); }