Tabnine Logo
InMemoryPipelineExecutorRegistry.getExecutorTraces
Code IndexAdd Tabnine to your IDE (free)

How to use
getExecutorTraces
method
in
org.guvnor.ala.registry.inmemory.InMemoryPipelineExecutorRegistry

Best Java code snippets using org.guvnor.ala.registry.inmemory.InMemoryPipelineExecutorRegistry.getExecutorTraces (Showing top 2 results out of 315)

origin: org.guvnor/guvnor-ala-spi

@Test
public void testGetExecutorTraces() {
  List<PipelineExecutorTrace> traces = new ArrayList<>();
  for (int i = 0; i < TRACES_COUNT; i++) {
    PipelineExecutorTrace trace = mock(PipelineExecutorTrace.class);
    when(trace.getTaskId()).thenReturn(PIPELINE_EXECUTION_ID + Integer.toString(i));
    traces.add(trace);
  }
  traces.forEach(trace -> pipelineExecutorRegistry.register(trace));
  Collection<PipelineExecutorTrace> result = pipelineExecutorRegistry.getExecutorTraces();
  assertEquals(traces.size(),
         result.size());
  for (PipelineExecutorTrace trace : traces) {
    assertTrue(result.contains(trace));
  }
}
origin: org.kie.workbench/kie-wb-common-ala-spi

@Test
public void testGetExecutorTraces() {
  List<PipelineExecutorTrace> traces = new ArrayList<>();
  for (int i = 0; i < TRACES_COUNT; i++) {
    PipelineExecutorTrace trace = mock(PipelineExecutorTrace.class);
    when(trace.getTaskId()).thenReturn(PIPELINE_EXECUTION_ID + Integer.toString(i));
    traces.add(trace);
  }
  traces.forEach(trace -> pipelineExecutorRegistry.register(trace));
  Collection<PipelineExecutorTrace> result = pipelineExecutorRegistry.getExecutorTraces();
  assertEquals(traces.size(),
         result.size());
  for (PipelineExecutorTrace trace : traces) {
    assertTrue(result.contains(trace));
  }
}
org.guvnor.ala.registry.inmemoryInMemoryPipelineExecutorRegistrygetExecutorTraces

Popular methods of InMemoryPipelineExecutorRegistry

  • deregister
  • register
  • getExecutorTrace
  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Reference (javax.naming)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now