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