@Test public void keywordCallNameIsTakenFromExecutableIfNoTemplateIsProvided_1() { final RobotToken token = RobotToken.create("keyword"); final IExecutableRowDescriptor descriptor = mock(IExecutableRowDescriptor.class); when(descriptor.getKeywordAction()).thenReturn(token); final RobotExecutableRow<UserKeyword> executable = new RobotExecutableRow<>(); final ExecutableWithDescriptor execDescriptor = new ExecutableWithDescriptor(executable, descriptor, null); assertThat(execDescriptor.getCalledKeywordName()).isEqualTo("keyword"); }
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);   }