test_class.declarator: factory = new ThreadDumpFactory()
test_class.modifier: public static final
test_class.original_string: public static final ThreadDumpFactory factory = new ThreadDumpFactory();
test_class.type: ThreadDumpFactory
test_class.var_name: factory
test_class.declarator: runtime
test_class.modifier: private
test_class.original_string: private ThreadDumpRuntime runtime;
test_class.type: ThreadDumpRuntime
test_class.var_name: runtime
test_class.declarator: a
test_class.modifier: private
test_class.original_string: private ThreadDumpThread a, aa, aaa, ab, b, ba;
test_class.type: ThreadDumpThread
test_class.var_name: a
test_class.file: core/src/test/java/com/github/olivergondza/dumpling/query/BlockingTreeTest.java
test_class.identifier: BlockingTreeTest
test_case.body: @Test
      public void deadlock() {
          runtime = new ThreadDumpFactory().fromStream(resource("jstack/deadlock.log"));
  
          ThreadDumpThread blocking = runtime.getThreads().where(nameContains("ajp-127.0.0.1-8009-24")).onlyThread();
          ThreadDumpThread blocked = runtime.getThreads().where(nameContains("ajp-127.0.0.1-8009-133")).onlyThread();
  
          @SuppressWarnings("unchecked")
          Set<Tree<ThreadDumpThread>> expected = new HashSet<Tree<ThreadDumpThread>>(Collections.singletonList(
                  new Tree<ThreadDumpThread>(blocking, new Tree<ThreadDumpThread>(blocked))
          ));
  
          assertThat(new BlockingTree().query(runtime.getThreads()).getTrees(), equalTo(expected));
      }
test_case.class_method_signature: BlockingTreeTest.deadlock()
test_case.full_signature: @Test public void deadlock()
test_case.identifier: deadlock
test_case.invocations: fromStream resource onlyThread where getThreads nameContains onlyThread where getThreads nameContains singletonList assertThat getTrees query getThreads equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void deadlock()
focal_class.declarator: showStackTraces = false
focal_class.modifier: private
focal_class.original_string: private boolean showStackTraces = false;
focal_class.type: boolean
focal_class.var_name: showStackTraces
focal_class.file: core/src/main/java/com/github/olivergondza/dumpling/query/BlockingTree.java
focal_class.identifier: BlockingTree
focal_class.interfaces: implements SingleThreadSetQuery<BlockingTree.Result<?, ?, ?>>
focal_class.class_method_signature: BlockingTree.showStackTraces()
focal_class.full_signature: public BlockingTree showStackTraces()
focal_class.identifier: showStackTraces
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BlockingTree
focal_class.signature: BlockingTree showStackTraces()
focal_class.class_method_signature: BlockingTree.query(SetType threads)
focal_class.full_signature: @Override public @Nonnull Result<SetType, RuntimeType, ThreadType> query(SetType threads)
focal_class.identifier: query
focal_class.modifiers: @Override public @Nonnull
focal_class.parameters: (SetType threads)
focal_class.return: Result<SetType, RuntimeType, ThreadType>
focal_class.signature: Result<SetType, RuntimeType, ThreadType> query(SetType threads)
focal_method.body: @Override
      public @Nonnull <
              SetType extends ThreadSet<SetType, RuntimeType, ThreadType>,
              RuntimeType extends ProcessRuntime<RuntimeType, SetType, ThreadType>,
              ThreadType extends ProcessThread<ThreadType, SetType, RuntimeType>
      > Result<SetType, RuntimeType, ThreadType> query(SetType threads) {
          return new Result<SetType, RuntimeType, ThreadType>(threads, showStackTraces);
      }
focal_method.class_method_signature: BlockingTree.query(SetType threads)
focal_method.full_signature: @Override public @Nonnull Result<SetType, RuntimeType, ThreadType> query(SetType threads)
focal_method.identifier: query
focal_method.modifiers: @Override public @Nonnull
focal_method.parameters: (SetType threads)
focal_method.return: Result<SetType, RuntimeType, ThreadType>
focal_method.signature: Result<SetType, RuntimeType, ThreadType> query(SetType threads)