@Test public void executableIsTakenFromForLoop() { final RobotExecutableRow<?> executable = new RobotExecutableRow<>(); final IExecutableRowDescriptor<?> descriptor = mock(IExecutableRowDescriptor.class); final ExecutableWithDescriptor forLoopExec = new ExecutableWithDescriptor( new ForLoop(new ExecutableWithDescriptor(executable, descriptor, null), newArrayList()), null); assertThat(forLoopExec.getExecutable()).isSameAs(executable); }
RobotExecutableRow<?> getExecutable() { return executable != null ? executable : loopExecutable.getExecutable(); }
ExecutableWithDescriptor { RobotExecutableRow<?> getExecutable() { return executable != null ? executable : loopExecutable.getExecutable(); } }
ExecutableWithDescriptor { RobotExecutableRow<?> getExecutable() { return executable != null ? executable : loopExecutable.getExecutable(); } ExecutableWithDescriptor(final RobotExecutableRow<?> executable, final IExecutableRowDescriptor<?> descriptor,
            final String template);   ExecutableWithDescriptor(final ForLoop loopExecutable, final String template); }
ExecutableWithDescriptor { RobotExecutableRow<?> getExecutable() { return executable != null ? executable : loopExecutable.getExecutable(); } ExecutableWithDescriptor(final RobotExecutableRow<?> executable, final IExecutableRowDescriptor<?> descriptor,
            final String template);   ExecutableWithDescriptor(final ForLoop loopExecutable, final String template);  }
ExecutableWithDescriptor { RobotExecutableRow<?> getExecutable() { return executable != null ? executable : loopExecutable.getExecutable(); } ExecutableWithDescriptor(final RobotExecutableRow<?> executable, final IExecutableRowDescriptor<?> descriptor,
            final String template);   ExecutableWithDescriptor(final ForLoop loopExecutable, final String template);   }