@Override public void map( final RobotLine currentLine, final RobotToken rt, final ParsingState currentState, final RobotFile fileModel) { List<UserKeyword> keywords = fileModel.getKeywordTable().getKeywords(); UserKeyword keyword = keywords.get(keywords.size() - 1); List<KeywordDocumentation> documentation = keyword.getDocumentation(); KeywordDocumentation testDocumentation = documentation.get(documentation.size() - 1); testDocumentation.addCommentPart(rt); }
private void assertThatTestCaseTableIsIncluded(final RobotFile fileModel) { assertThat(fileModel.getSettingTable().isPresent()).isFalse(); assertThat(fileModel.getVariableTable().isPresent()).isFalse(); assertThat(fileModel.getTestCaseTable().isPresent()).isTrue(); assertThat(fileModel.getKeywordTable().isPresent()).isFalse(); }