@Test public void keywordCallNameIsTakenFromExecutableIfNoTemplateIsProvided_2() { final UserKeyword holder = new UserKeyword(RobotToken.create("kw")); final RobotExecutableRow<UserKeyword> loopHeader = new RobotExecutableRow<>(); loopHeader.setParent(holder); holder.addElement(loopHeader); loopHeader.setAction(RobotToken.create(":FOR", RobotTokenType.FOR_TOKEN)); loopHeader.addArgument(RobotToken.create("${x}")); loopHeader.addArgument(RobotToken.create("IN", RobotTokenType.IN_TOKEN)); loopHeader.addArgument(RobotToken.create("${XS}")); final RobotExecutableRow<UserKeyword> executable = new RobotExecutableRow<>(); executable.setParent(holder); holder.addElement(executable); executable.setAction(RobotToken.create("\\", RobotTokenType.FOR_CONTINUE_TOKEN)); executable.addArgument(RobotToken.create("keyword_in_loop")); final ForLoopContinueRowDescriptor<?> descriptor = (ForLoopContinueRowDescriptor<?>) executable .buildLineDescription(); final ExecutableWithDescriptor execDescriptor = new ExecutableWithDescriptor(executable, descriptor, null); assertThat(execDescriptor.getCalledKeywordName()).isEqualTo("keyword_in_loop"); }
String getCalledKeywordName() { return template != null ? template : getDescriptor().getKeywordAction().getText(); }
ExecutableWithDescriptor { String getCalledKeywordName() { return template != null ? template : getDescriptor().getKeywordAction().getText(); } }
ExecutableWithDescriptor { String getCalledKeywordName() { return template != null ? template : getDescriptor().getKeywordAction().getText(); } ExecutableWithDescriptor(final RobotExecutableRow<?> executable, final IExecutableRowDescriptor<?> descriptor,
            final String template);   ExecutableWithDescriptor(final ForLoop loopExecutable, final String template); }
ExecutableWithDescriptor { String getCalledKeywordName() { return template != null ? template : getDescriptor().getKeywordAction().getText(); } ExecutableWithDescriptor(final RobotExecutableRow<?> executable, final IExecutableRowDescriptor<?> descriptor,
            final String template);   ExecutableWithDescriptor(final ForLoop loopExecutable, final String template);  }
ExecutableWithDescriptor { String getCalledKeywordName() { return template != null ? template : getDescriptor().getKeywordAction().getText(); } ExecutableWithDescriptor(final RobotExecutableRow<?> executable, final IExecutableRowDescriptor<?> descriptor,
            final String template);   ExecutableWithDescriptor(final ForLoop loopExecutable, final String template);   }