@Test public void lineBreakpointIsProvidedThroughSupplier() { final RobotBreakpointSupplier breakpointSupplier = mock(RobotBreakpointSupplier.class); final RobotBreakpoint breakpoint = mock(RobotBreakpoint.class); when(breakpointSupplier.lineBreakpointFor(URI.create("file: .thenReturn(Optional.of(breakpoint)); final ExecutableCallContext context = new ExecutableCallContext(newArrayList(), newArrayList(), 0, URI.create("file: assertThat(context.getLineBreakpoint()).contains(breakpoint); }
@Override public Optional<RobotBreakpoint> getLineBreakpoint() { return breakpointSupplier.lineBreakpointFor(locationUri, line); }
ExecutableCallContext extends DefaultContext { @Override public Optional<RobotBreakpoint> getLineBreakpoint() { return breakpointSupplier.lineBreakpointFor(locationUri, line); } }
ExecutableCallContext extends DefaultContext { @Override public Optional<RobotBreakpoint> getLineBreakpoint() { return breakpointSupplier.lineBreakpointFor(locationUri, line); } ExecutableCallContext(final List<RobotFile> models, final List<ExecutableWithDescriptor> elements, final int index,
            final URI locationUri, final int line, final RobotBreakpointSupplier breakpointSupplier);   ExecutableCallContext(final List<RobotFile> models, final List<ExecutableWithDescriptor> elements, final int index,
            final URI locationUri, final int line, final String errorMessage,
            final RobotBreakpointSupplier breakpointSupplier); }
ExecutableCallContext extends DefaultContext { @Override public Optional<RobotBreakpoint> getLineBreakpoint() { return breakpointSupplier.lineBreakpointFor(locationUri, line); } ExecutableCallContext(final List<RobotFile> models, final List<ExecutableWithDescriptor> elements, final int index,
            final URI locationUri, final int line, final RobotBreakpointSupplier breakpointSupplier);   ExecutableCallContext(final List<RobotFile> models, final List<ExecutableWithDescriptor> elements, final int index,
            final URI locationUri, final int line, final String errorMessage,
            final RobotBreakpointSupplier breakpointSupplier); @Override boolean isErroneous(); @Override Optional<String> getErrorMessage(); @Override Optional<URI> getAssociatedPath(); @Override Optional<FileRegion> getFileRegion(); boolean isOnLastExecutable(); @Override StackFrameContext moveTo(final RunningKeyword runningKeyword,
            final RobotBreakpointSupplier breakpointSupplier); @Override Optional<RobotBreakpoint> getLineBreakpoint(); @Override Optional<RobotBreakpoint> getKeywordFailBreakpoint(final QualifiedKeywordName currentlyFailedKeyword); }
ExecutableCallContext extends DefaultContext { @Override public Optional<RobotBreakpoint> getLineBreakpoint() { return breakpointSupplier.lineBreakpointFor(locationUri, line); } ExecutableCallContext(final List<RobotFile> models, final List<ExecutableWithDescriptor> elements, final int index,
            final URI locationUri, final int line, final RobotBreakpointSupplier breakpointSupplier);   ExecutableCallContext(final List<RobotFile> models, final List<ExecutableWithDescriptor> elements, final int index,
            final URI locationUri, final int line, final String errorMessage,
            final RobotBreakpointSupplier breakpointSupplier); @Override boolean isErroneous(); @Override Optional<String> getErrorMessage(); @Override Optional<URI> getAssociatedPath(); @Override Optional<FileRegion> getFileRegion(); boolean isOnLastExecutable(); @Override StackFrameContext moveTo(final RunningKeyword runningKeyword,
            final RobotBreakpointSupplier breakpointSupplier); @Override Optional<RobotBreakpoint> getLineBreakpoint(); @Override Optional<RobotBreakpoint> getKeywordFailBreakpoint(final QualifiedKeywordName currentlyFailedKeyword);  }