@Test public void currentElementIsReturnedAsProvidedViaConstructor() { final ExecutableWithDescriptor desc = mock(ExecutableWithDescriptor.class); final ForLoopContext context1 = new ForLoopContext(URI.create("file: final ForLoopContext context2 = new ForLoopContext(desc, URI.create("file: assertThat(context1.currentElement()).isNull(); assertThat(context2.currentElement()).isSameAs(desc); }
public ExecutableWithDescriptor currentElement() { return forLoopExecutable; }
ForLoopContext extends DefaultContext { public ExecutableWithDescriptor currentElement() { return forLoopExecutable; } }
ForLoopContext extends DefaultContext { public ExecutableWithDescriptor currentElement() { return forLoopExecutable; } @VisibleForTesting  ForLoopContext(final URI locationUri, final int line, final String errorMsg); @VisibleForTesting  ForLoopContext(final ExecutableWithDescriptor forLoopExecutable, final URI locationUri, final int line,
            final String errorMsg); }
ForLoopContext extends DefaultContext { public ExecutableWithDescriptor currentElement() { return forLoopExecutable; } @VisibleForTesting  ForLoopContext(final URI locationUri, final int line, final String errorMsg); @VisibleForTesting  ForLoopContext(final ExecutableWithDescriptor forLoopExecutable, final URI locationUri, final int line,
            final String errorMsg); static StackFrameContext findContextForLoop(final StackFrameContext currentContext); ExecutableWithDescriptor currentElement(); @Override boolean isErroneous(); @Override Optional<String> getErrorMessage(); @Override Optional<URI> getAssociatedPath(); @Override Optional<FileRegion> getFileRegion(); @Override StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier); }
ForLoopContext extends DefaultContext { public ExecutableWithDescriptor currentElement() { return forLoopExecutable; } @VisibleForTesting  ForLoopContext(final URI locationUri, final int line, final String errorMsg); @VisibleForTesting  ForLoopContext(final ExecutableWithDescriptor forLoopExecutable, final URI locationUri, final int line,
            final String errorMsg); static StackFrameContext findContextForLoop(final StackFrameContext currentContext); ExecutableWithDescriptor currentElement(); @Override boolean isErroneous(); @Override Optional<String> getErrorMessage(); @Override Optional<URI> getAssociatedPath(); @Override Optional<FileRegion> getFileRegion(); @Override StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier);  }