@Test public void frameIsASuiteFrame_whenItHasSuiteCategory() { final StackFrameContext context = mock(StackFrameContext.class); assertThat(new StackFrame("frame", FrameCategory.SUITE, 42, context).isSuiteContext()).isTrue(); assertThat(new StackFrame("frame", FrameCategory.TEST, 42, context).isSuiteContext()).isFalse(); assertThat(new StackFrame("frame", FrameCategory.KEYWORD, 42, context).isSuiteContext()).isFalse(); assertThat(new StackFrame("frame", FrameCategory.FOR, 42, context).isSuiteContext()).isFalse(); assertThat(new StackFrame("frame", FrameCategory.FOR_ITEM, 42, context).isSuiteContext()).isFalse(); }
public boolean isSuiteContext() { return hasCategory(FrameCategory.SUITE); }
StackFrame { public boolean isSuiteContext() { return hasCategory(FrameCategory.SUITE); } }
StackFrame { public boolean isSuiteContext() { return hasCategory(FrameCategory.SUITE); } 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 isSuiteContext() { return hasCategory(FrameCategory.SUITE); } 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 isSuiteContext() { return hasCategory(FrameCategory.SUITE); } 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();  }