@Test public void frameCategoryIsTakenFromConstructor() { final StackFrameContext context = mock(StackFrameContext.class); final StackFrame frame1 = new StackFrame("frame", FrameCategory.SUITE, 42, context); final StackFrame frame2 = new StackFrame("frame", FrameCategory.TEST, 42, context, newHashSet(URI.create("file: final StackFrame frame3 = new StackFrame("frame", FrameCategory.KEYWORD, 42, context, () -> URI.create("file: assertThat(frame1.hasCategory(FrameCategory.SUITE)).isTrue(); assertThat(frame1.hasCategory(FrameCategory.TEST)).isFalse(); assertThat(frame2.hasCategory(FrameCategory.TEST)).isTrue(); assertThat(frame2.hasCategory(FrameCategory.FOR)).isFalse(); assertThat(frame3.hasCategory(FrameCategory.KEYWORD)).isTrue(); assertThat(frame3.hasCategory(FrameCategory.TEST)).isFalse(); }
public boolean hasCategory(final FrameCategory category) { return this.category == category; }
StackFrame { public boolean hasCategory(final FrameCategory category) { return this.category == category; } }
StackFrame { public boolean hasCategory(final FrameCategory category) { return this.category == category; } StackFrame(final String name, final FrameCategory category, final int level, final StackFrameContext context,
            final Set<URI> loadedResources);   StackFrame(final String name, final FrameCategory category, final int level, final StackFrameContext context);   StackFrame(final String name, final FrameCategory category, final int level, final StackFrameContext context,
            final Supplier<URI> contextPathSupplier); private  StackFrame(final String name, final FrameCategory category, final int level,
            final StackFrameContext context, final Supplier<URI> contextPathSupplier, final Set<URI> loadedResources); }
StackFrame { public boolean hasCategory(final FrameCategory category) { return this.category == category; } StackFrame(final String name, final FrameCategory category, final int level, final StackFrameContext context,
            final Set<URI> loadedResources);   StackFrame(final String name, final FrameCategory category, final int level, final StackFrameContext context);   StackFrame(final String name, final FrameCategory category, final int level, final StackFrameContext context,
            final Supplier<URI> contextPathSupplier); private  StackFrame(final String name, final FrameCategory category, final int level,
            final StackFrameContext context, final Supplier<URI> contextPathSupplier, final Set<URI> loadedResources); String getName(); boolean hasCategory(final FrameCategory category); boolean isSuiteContext(); boolean isSuiteDirectoryContext(); boolean isSuiteFileContext(); boolean isTestContext(); Optional<URI> getCurrentSourcePath(); Optional<URI> getContextPath(); Optional<FileRegion> getFileRegion(); boolean isLibraryKeywordFrame(); boolean isErroneous(); String getErrorMessage(); StackFrameVariables getVariables(); Optional<StackVariablesDelta> getLastDelta(); }
StackFrame { public boolean hasCategory(final FrameCategory category) { return this.category == category; } StackFrame(final String name, final FrameCategory category, final int level, final StackFrameContext context,
            final Set<URI> loadedResources);   StackFrame(final String name, final FrameCategory category, final int level, final StackFrameContext context);   StackFrame(final String name, final FrameCategory category, final int level, final StackFrameContext context,
            final Supplier<URI> contextPathSupplier); private  StackFrame(final String name, final FrameCategory category, final int level,
            final StackFrameContext context, final Supplier<URI> contextPathSupplier, final Set<URI> loadedResources); String getName(); boolean hasCategory(final FrameCategory category); boolean isSuiteContext(); boolean isSuiteDirectoryContext(); boolean isSuiteFileContext(); boolean isTestContext(); Optional<URI> getCurrentSourcePath(); Optional<URI> getContextPath(); Optional<FileRegion> getFileRegion(); boolean isLibraryKeywordFrame(); boolean isErroneous(); String getErrorMessage(); StackFrameVariables getVariables(); Optional<StackVariablesDelta> getLastDelta();  }