Tabnine Logo
Job.getNamespace
Code IndexAdd Tabnine to your IDE (free)

How to use
getNamespace
method
in
org.finra.herd.model.api.xml.Job

Best Java code snippets using org.finra.herd.model.api.xml.Job.getNamespace (Showing top 17 results out of 315)

origin: FINRAOS/herd

@Test
public void testCreateJob() throws Exception
{
  // Create the namespace entity.
  namespaceDaoTestHelper.createNamespaceEntity(TEST_ACTIVITI_NAMESPACE_CD);
  // Create a job definition create request using hard coded test values.
  JobDefinitionCreateRequest jobDefinitionCreateRequest = jobDefinitionServiceTestHelper.createJobDefinitionCreateRequest();
  // Create the job definition.
  jobDefinitionService.createJobDefinition(jobDefinitionCreateRequest, false);
  // Create a job create request using hard coded test values.
  JobCreateRequest jobCreateRequest = jobServiceTestHelper.createJobCreateRequest(TEST_ACTIVITI_NAMESPACE_CD, TEST_ACTIVITI_JOB_NAME);
  // Create the job.
  Job resultJob = jobService.createAndStartJob(jobCreateRequest);
  // Validate the results.
  assertNotNull(resultJob);
  assertNotNull(resultJob.getId());
  assertTrue(!resultJob.getId().isEmpty());
  assertEquals(TEST_ACTIVITI_NAMESPACE_CD, resultJob.getNamespace());
  assertEquals(TEST_ACTIVITI_JOB_NAME, resultJob.getJobName());
  assertEquals(jobDefinitionCreateRequest.getParameters().size() + jobCreateRequest.getParameters().size() + 1, resultJob.getParameters().size());
  List<String> expectedParameters = new ArrayList<>();
  expectedParameters.addAll(parametersToStringList(jobDefinitionCreateRequest.getParameters()));
  expectedParameters.addAll(parametersToStringList(jobCreateRequest.getParameters()));
  expectedParameters.addAll(parametersToStringList(
    Arrays.asList(new Parameter(HERD_WORKFLOW_ENVIRONMENT, configurationHelper.getProperty(ConfigurationValue.HERD_ENVIRONMENT)))));
  List<String> resultParameters = parametersToStringList(resultJob.getParameters());
  assertTrue(expectedParameters.containsAll(resultParameters));
  assertTrue(resultParameters.containsAll(expectedParameters));
}
origin: FINRAOS/herd

assertEquals(TEST_ACTIVITI_NAMESPACE_CD, job.getNamespace());
assertEquals(TEST_ACTIVITI_JOB_NAME, job.getJobName());
origin: FINRAOS/herd

@Test
public void testCreateJobNoParams() throws Exception
{
  // Create the namespace entity.
  namespaceDaoTestHelper.createNamespaceEntity(TEST_ACTIVITI_NAMESPACE_CD);
  // Create a job definition create request using hard coded test values.
  JobDefinitionCreateRequest jobDefinitionCreateRequest = jobDefinitionServiceTestHelper.createJobDefinitionCreateRequest();
  jobDefinitionCreateRequest.setParameters(null);
  // Create the job definition.
  jobDefinitionService.createJobDefinition(jobDefinitionCreateRequest, false);
  // Create a job create request using hard coded test values.
  JobCreateRequest jobCreateRequest = jobServiceTestHelper.createJobCreateRequest(TEST_ACTIVITI_NAMESPACE_CD, TEST_ACTIVITI_JOB_NAME);
  jobCreateRequest.setParameters(null);
  // Create the job.
  Job resultJob = jobService.createAndStartJob(jobCreateRequest);
  //expected default parameter
  List<Parameter> expectedParameters =
    Arrays.asList(new Parameter(HERD_WORKFLOW_ENVIRONMENT, configurationHelper.getProperty(ConfigurationValue.HERD_ENVIRONMENT)));
  // Validate the results.
  assertNotNull(resultJob);
  assertNotNull(resultJob.getId());
  assertTrue(!resultJob.getId().isEmpty());
  assertEquals(TEST_ACTIVITI_NAMESPACE_CD, resultJob.getNamespace());
  assertEquals(TEST_ACTIVITI_JOB_NAME, resultJob.getJobName());
  assertTrue(resultJob.getParameters().size() == 1);
  assertTrue(expectedParameters.containsAll(resultJob.getParameters()));
}
origin: FINRAOS/herd

assertEquals(TEST_ACTIVITI_NAMESPACE_CD, job.getNamespace());
assertEquals(TEST_ACTIVITI_JOB_NAME, job.getJobName());
origin: FINRAOS/herd

theNamespace = this.getNamespace();
strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null));
origin: org.finra.herd/herd-model-api

lhsNamespace = this.getNamespace();
String rhsNamespace;
rhsNamespace = that.getNamespace();
if (!strategy.equals(LocatorUtils.property(thisLocator, "namespace", lhsNamespace), LocatorUtils.property(thatLocator, "namespace", rhsNamespace), lhsNamespace, rhsNamespace, (this.namespace!= null), (that.namespace!= null))) {
  return false;
origin: org.finra.herd/herd-model-api

theNamespace = this.getNamespace();
strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null));
origin: FINRAOS/herd

lhsNamespace = this.getNamespace();
String rhsNamespace;
rhsNamespace = that.getNamespace();
if (!strategy.equals(LocatorUtils.property(thisLocator, "namespace", lhsNamespace), LocatorUtils.property(thatLocator, "namespace", rhsNamespace), lhsNamespace, rhsNamespace, (this.namespace!= null), (that.namespace!= null))) {
  return false;
origin: FINRAOS/herd

lhsNamespace = this.getNamespace();
String rhsNamespace;
rhsNamespace = that.getNamespace();
if (!strategy.equals(LocatorUtils.property(thisLocator, "namespace", lhsNamespace), LocatorUtils.property(thatLocator, "namespace", rhsNamespace), lhsNamespace, rhsNamespace, (this.namespace!= null), (that.namespace!= null))) {
  return false;
origin: FINRAOS/herd

theNamespace = this.getNamespace();
strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null));
origin: FINRAOS/herd

theNamespace = this.getNamespace();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "namespace", theNamespace), currentHashCode, theNamespace, (this.namespace!= null));
origin: org.finra.herd/herd-model-api

theNamespace = this.getNamespace();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "namespace", theNamespace), currentHashCode, theNamespace, (this.namespace!= null));
origin: FINRAOS/herd

theNamespace = this.getNamespace();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "namespace", theNamespace), currentHashCode, theNamespace, (this.namespace!= null));
origin: FINRAOS/herd

/**
 * Asserts that the deleteJob call will move the job to completion, and add a record in the history instance with the specified delete reason.
 *
 * @throws Exception
 */
@Test
public void testDeleteJob() throws Exception
{
  // Start a job that will wait in a receive task
  jobDefinitionServiceTestHelper.createJobDefinition(ACTIVITI_XML_TEST_RECEIVE_TASK_WITH_CLASSPATH);
  Job job = jobService.createAndStartJob(jobServiceTestHelper.createJobCreateRequest(TEST_ACTIVITI_NAMESPACE_CD, TEST_ACTIVITI_JOB_NAME));
  // Create a job delete request
  JobDeleteRequest jobDeleteRequest = new JobDeleteRequest();
  jobDeleteRequest.setDeleteReason("test delete reason");
  Job deleteJobResponse = jobService.deleteJob(job.getId(), jobDeleteRequest);
  // Assert delete job response
  assertEquals(job.getId(), deleteJobResponse.getId());
  assertNull(deleteJobResponse.getNamespace());
  assertNull(deleteJobResponse.getJobName());
  assertEquals(JobStatusEnum.COMPLETED, deleteJobResponse.getStatus());
  assertEquals(jobDeleteRequest.getDeleteReason(), deleteJobResponse.getDeleteReason());
  // Assert historic process instance
  HistoricProcessInstance historicProcessInstance =
    activitiHistoryService.createHistoricProcessInstanceQuery().processInstanceId(job.getId()).singleResult();
  assertNotNull(historicProcessInstance);
  assertEquals(jobDeleteRequest.getDeleteReason(), historicProcessInstance.getDeleteReason());
}
origin: org.finra.herd/herd-model-api

if (namespaceShouldBeCopiedAndSet == Boolean.TRUE) {
  String sourceNamespace;
  sourceNamespace = this.getNamespace();
  String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null)));
  copy.setNamespace(copyNamespace);
origin: FINRAOS/herd

if (namespaceShouldBeCopiedAndSet == Boolean.TRUE) {
  String sourceNamespace;
  sourceNamespace = this.getNamespace();
  String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null)));
  copy.setNamespace(copyNamespace);
origin: FINRAOS/herd

if (namespaceShouldBeCopiedAndSet == Boolean.TRUE) {
  String sourceNamespace;
  sourceNamespace = this.getNamespace();
  String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null)));
  copy.setNamespace(copyNamespace);
org.finra.herd.model.api.xmlJobgetNamespace

Javadoc

Gets the value of the namespace property.

Popular methods of Job

  • <init>
    Fully-initialising value constructor
  • getParameters
  • setId
    Sets the value of the id property.
  • getActivitiJobXml
    Gets the value of the activitiJobXml property.
  • getCompletedWorkflowSteps
  • getCurrentWorkflowStep
    Gets the value of the currentWorkflowStep property.
  • getDeleteReason
    Gets the value of the deleteReason property.
  • getEndTime
    Gets the value of the endTime property.
  • getId
    Gets the value of the id property.
  • getJobName
    Gets the value of the jobName property.
  • getStartTime
    Gets the value of the startTime property.
  • getStatus
    Gets the value of the status property.
  • getStartTime,
  • getStatus,
  • setActivitiJobXml,
  • setCompletedWorkflowSteps,
  • setCurrentWorkflowStep,
  • setDeleteReason,
  • setEndTime,
  • setJobName,
  • setNamespace

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Best IntelliJ 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