@Test public void suiteContextHasNoSourceAssociatedIfNotProvided() { final SuiteContext context1 = new SuiteContext("suite"); final SuiteContext context2 = new SuiteContext("suite", true, "error"); final SuiteContext context3 = new SuiteContext("suite", null, true, "error"); final SuiteContext context4 = new SuiteContext("suite", null, false, uri -> Optional.empty()); assertThat(context1.getAssociatedPath()).isEmpty(); assertThat(context1.getFileRegion()).isEmpty(); assertThat(context2.getAssociatedPath()).isEmpty(); assertThat(context2.getFileRegion()).isEmpty(); assertThat(context3.getAssociatedPath()).isEmpty(); assertThat(context3.getFileRegion()).isEmpty(); assertThat(context4.getAssociatedPath()).isEmpty(); assertThat(context4.getFileRegion()).isEmpty(); }
@Override public Optional<URI> getAssociatedPath() { return Optional.ofNullable(locationUri); }
SuiteContext extends DefaultContext { @Override public Optional<URI> getAssociatedPath() { return Optional.ofNullable(locationUri); } }
SuiteContext extends DefaultContext { @Override public Optional<URI> getAssociatedPath() { return Optional.ofNullable(locationUri); } SuiteContext(final String suiteName);  SuiteContext(final String suiteName, final boolean isDirectory, final String errorMessage);  SuiteContext(final String suiteName, final URI locationUri, final boolean isDirectory,
            final String errorMessage);  SuiteContext(final String suiteName, final URI locationUri, final boolean isDirectory,
            final Function<URI, Optional<RobotFile>> associatedFileModelProvider); private  SuiteContext(final String suiteName, final URI locationUri, final boolean isDirectory,
            final String errorMessage,
            final Function<URI, Optional<RobotFile>> associatedFileModelProvider); }
SuiteContext extends DefaultContext { @Override public Optional<URI> getAssociatedPath() { return Optional.ofNullable(locationUri); } SuiteContext(final String suiteName);  SuiteContext(final String suiteName, final boolean isDirectory, final String errorMessage);  SuiteContext(final String suiteName, final URI locationUri, final boolean isDirectory,
            final String errorMessage);  SuiteContext(final String suiteName, final URI locationUri, final boolean isDirectory,
            final Function<URI, Optional<RobotFile>> associatedFileModelProvider); private  SuiteContext(final String suiteName, final URI locationUri, final boolean isDirectory,
            final String errorMessage,
            final Function<URI, Optional<RobotFile>> associatedFileModelProvider); boolean isDirectory(); @Override boolean isErroneous(); @Override Optional<String> getErrorMessage(); @Override Optional<URI> getAssociatedPath(); @Override StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier); }
SuiteContext extends DefaultContext { @Override public Optional<URI> getAssociatedPath() { return Optional.ofNullable(locationUri); } SuiteContext(final String suiteName);  SuiteContext(final String suiteName, final boolean isDirectory, final String errorMessage);  SuiteContext(final String suiteName, final URI locationUri, final boolean isDirectory,
            final String errorMessage);  SuiteContext(final String suiteName, final URI locationUri, final boolean isDirectory,
            final Function<URI, Optional<RobotFile>> associatedFileModelProvider); private  SuiteContext(final String suiteName, final URI locationUri, final boolean isDirectory,
            final String errorMessage,
            final Function<URI, Optional<RobotFile>> associatedFileModelProvider); boolean isDirectory(); @Override boolean isErroneous(); @Override Optional<String> getErrorMessage(); @Override Optional<URI> getAssociatedPath(); @Override StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier);  }