congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PipelineExecutorTraceImplMarshallerTest.mockStageError
Code IndexAdd Tabnine to your IDE (free)

How to use
mockStageError
method
in
org.guvnor.ala.pipeline.execution.marshalling.PipelineExecutorTraceImplMarshallerTest

Best Java code snippets using org.guvnor.ala.pipeline.execution.marshalling.PipelineExecutorTraceImplMarshallerTest.mockStageError (Showing top 2 results out of 315)

origin: org.kie.workbench/kie-wb-common-ala-spi

@Override
public PipelineExecutorTraceImpl getValue() {
  //only the stage names are used by the taskDef, so the pipeline can be mocked.
  List<Stage> stages = mockStages(STAGE_COUNT);
  Pipeline pipeline = new BasePipeline(PIPELINE_NAME,
                     stages) {
  };
  Input input = mockInput(PIPELINE_INPUT_SIZE);
  PipelineExecutorTaskDefImpl taskDef = new PipelineExecutorTaskDefImpl(pipeline,
                                     input);
  PipelineExecutorTaskImpl taskImpl = new PipelineExecutorTaskImpl(taskDef,
                                   PIPELINE_EXECUTION_ID);
  taskImpl.setPipelineStatus(PipelineExecutorTask.Status.SCHEDULED);
  taskImpl.setPipelineError(mockError(PIPELINE_ERROR,
                    PIPELINE_ERROR_DETAIL));
  taskImpl.getTaskDef().getStages().forEach(stage -> taskImpl.setStageError(stage,
                                       mockStageError(stage)));
  taskImpl.setOutput(new MockPipelineOutput(PIPELINE_OUTPUT));
  return new PipelineExecutorTraceImpl(taskImpl);
}
origin: org.guvnor/guvnor-ala-spi

@Override
public PipelineExecutorTraceImpl getValue() {
  //only the stage names are used by the taskDef, so the pipeline can be mocked.
  List<Stage> stages = mockStages(STAGE_COUNT);
  Pipeline pipeline = new BasePipeline(PIPELINE_NAME,
                     stages);
  Input input = mockInput(PIPELINE_INPUT_SIZE);
  PipelineExecutorTaskDefImpl taskDef = new PipelineExecutorTaskDefImpl(pipeline,
                                     input);
  PipelineExecutorTaskImpl taskImpl = new PipelineExecutorTaskImpl(taskDef,
                                   PIPELINE_EXECUTION_ID);
  taskImpl.setPipelineStatus(PipelineExecutorTask.Status.SCHEDULED);
  taskImpl.setPipelineError(mockError(PIPELINE_ERROR));
  taskImpl.getTaskDef().getStages().forEach(stage -> taskImpl.setStageError(stage,
                                       mockStageError(stage)));
  taskImpl.setOutput(new MockPipelineOutput(PIPELINE_OUTPUT));
  return new PipelineExecutorTraceImpl(taskImpl);
}
org.guvnor.ala.pipeline.execution.marshallingPipelineExecutorTraceImplMarshallerTestmockStageError

Popular methods of PipelineExecutorTraceImplMarshallerTest

  • assertEqualsPipelineExecutorTrace
  • buildStageErrorMessage
  • getMarshalledValue
  • getValue
  • mockError
  • mockInput
  • mockStages
  • assertEqualsPipelineExecutorException
  • buildStageErrorDetail

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • startActivity (Activity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Top Sublime Text plugins
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