KeywordUnknownContext extends KeywordContext { @Override public boolean isErroneous() { return true; } KeywordUnknownContext(final String errorMessage); @Override boolean isErroneous(); @Override Optional<String> getErrorMessage(); @Override Optional<URI> getAssociatedPath(); @Override Optional<FileRegion> getFileRegion(); @Override StackFrameContext moveTo(final RunningKeyword keyword, final RobotBreakpointSupplier breakpointSupplier);  }
@Test public void unknownKeywordContextIsErroneous() { assertThat(new KeywordUnknownContext(null).isErroneous()).isTrue(); assertThat(new KeywordUnknownContext("").isErroneous()).isTrue(); assertThat(new KeywordUnknownContext("error").isErroneous()).isTrue(); }