private Map<Integer, CommandCall> populateCommandCallByColumnMap(Table table, CommandCall tableCommandCall) { Map<Integer, CommandCall> commandCallByColumn = new HashMap<Integer, CommandCall>(); Row headerRow = table.getLastHeaderRow(); for (CommandCall childCall : tableCommandCall.getChildren().asCollection()) { int columnIndex = headerRow.getIndexOfCell(childCall.getElement()); if (columnIndex == -1) { throw new RuntimeException("Commands must be placed on <th> elements when using 'execute' or 'verifyRows' commands on a <table>."); } commandCallByColumn.put(columnIndex, childCall); } return commandCallByColumn; }
private Map<Integer, CommandCall> populateCommandCallByColumnMap(Table table, CommandCall tableCommandCall) { Map<Integer, CommandCall> commandCallByColumn = new HashMap<Integer, CommandCall>(); Row headerRow = table.getLastHeaderRow(); for (CommandCall childCall : tableCommandCall.getChildren().asCollection()) { int columnIndex = headerRow.getIndexOfCell(childCall.getElement()); if (columnIndex == -1) { throw new RuntimeException("Commands must be placed on <th> elements when using 'execute' or 'verifyRows' commands on a <table>."); } commandCallByColumn.put(columnIndex, childCall); } return commandCallByColumn; }
private void populateCommandCallByColumnMap() { Row headerRow = getLastHeaderRow(); for (CommandCall childCall : tableCommandCall.getChildren().asCollection()) { int columnIndex = headerRow.getIndexOfCell(childCall.getElement()); if (columnIndex == -1) { throw new RuntimeException("Commands must be placed on <th> elements when using 'execute' or 'verifyRows' commands on a <table>."); } commandCallByColumn.put(columnIndex, childCall); } }
private void populateCommandCallByColumnMap() { Row headerRow = getLastHeaderRow(); for (CommandCall childCall : tableCommandCall.getChildren().asCollection()) { int columnIndex = headerRow.getIndexOfCell(childCall.getElement()); if (columnIndex == -1) { throw new RuntimeException("Commands must be placed on <th> elements when using 'execute' or 'verifyRows' commands on a <table>."); } commandCallByColumn.put(columnIndex, childCall); } }
public void modifyTree(List<ExampleCommandCall> examples, List<CommandCall> beforeExamples) { this.getCommand().modifyCommandCallTree(this, examples, beforeExamples); List<CommandCall> childrenCopy = new ArrayList(getChildren().asCollection()); for (CommandCall childCall: childrenCopy) { childCall.modifyTree(examples, beforeExamples); } }
public void modifyTree(List<ExampleCommandCall> examples, List<CommandCall> beforeExamples) { this.getCommand().modifyCommandCallTree(this, examples, beforeExamples); List<CommandCall> childrenCopy = new ArrayList(getChildren().asCollection()); for (CommandCall childCall: childrenCopy) { childCall.modifyTree(examples, beforeExamples); } }
long success = 0; for (CommandCall columnCommand : childrenCalls.asCollection()) { columnCommand.verify(evaluator, backgroundResultRecorder, fixture);
long success = 0; for (CommandCall columnCommand : childrenCalls.asCollection()) { columnCommand.verify(evaluator, backgroundResultRecorder, fixture);