/** * Validates the job summaries per specified map of expected job ids to their relative statuses. * * @param expectedJobStatuses the map of expected job ids to their relative statuses * @param actualJobSummaries the job summaries to be validated */ private void validateJobSummaries(Map<String, JobStatusEnum> expectedJobStatuses, JobSummaries actualJobSummaries) { // Build the mapping of the actual job ids to job statuses. Map<String, JobStatusEnum> actualJobStatuses = new HashMap<>(); for (JobSummary actualJobSummary : actualJobSummaries.getJobSummaries()) { actualJobStatuses.put(actualJobSummary.getId(), actualJobSummary.getStatus()); } // Compare the expected and actual mappings. assertEquals(expectedJobStatuses, actualJobStatuses); } }
assertEquals(1, jobSummaries.size()); JobSummary jobSummary = jobSummaries.get(0); assertEquals(historicProcessInstanceEntity1.getId(), jobSummary.getId()); assertEquals("a", jobSummary.getNamespace()); assertEquals("b", jobSummary.getJobName());
assertEquals(1, jobSummaries.size()); JobSummary jobSummary = jobSummaries.get(0); assertEquals(historicProcessInstanceEntity1.getId(), jobSummary.getId()); assertEquals("a", jobSummary.getNamespace()); assertEquals("b", jobSummary.getJobName());
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
if (idShouldBeCopiedAndSet == Boolean.TRUE) { String sourceId; sourceId = this.getId(); String copyId = ((String) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null))); copy.setId(copyId);
if (idShouldBeCopiedAndSet == Boolean.TRUE) { String sourceId; sourceId = this.getId(); String copyId = ((String) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null))); copy.setId(copyId);
if (idShouldBeCopiedAndSet == Boolean.TRUE) { String sourceId; sourceId = this.getId(); String copyId = ((String) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null))); copy.setId(copyId);