@Test public void sameContextIsReturned_whenMovingToAnyTypeOfKeyword() { final ForLoopContext context = new ForLoopContext(mock(ExecutableWithDescriptor.class), URI.create("file: for (final KeywordCallType type : EnumSet.allOf(KeywordCallType.class)) { final StackFrameContext contextAfterMove = context.moveTo(new RunningKeyword("_", "_", type), mock(RobotBreakpointSupplier.class)); assertThat(contextAfterMove).isSameAs(context); } }
@Override public StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier) { return this; }
ForLoopContext extends DefaultContext { @Override public StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier) { return this; } }
ForLoopContext extends DefaultContext { @Override public StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier) { return this; } @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 { @Override public StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier) { return this; } @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 { @Override public StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier) { return this; } @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);  }