/** * 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("a", jobSummary.getNamespace()); assertEquals("b", jobSummary.getJobName()); assertEquals(JobStatusEnum.COMPLETED, jobSummary.getStatus()); assertEquals(historicProcessInstanceEntity1.getStartTime().getTime(), jobSummary.getStartTime().toGregorianCalendar().getTimeInMillis()); assertEquals(historicProcessInstanceEntity1.getEndTime().getTime(), jobSummary.getEndTime().toGregorianCalendar().getTimeInMillis());
assertEquals("a", jobSummary.getNamespace()); assertEquals("b", jobSummary.getJobName()); assertEquals(JobStatusEnum.RUNNING, jobSummary.getStatus()); assertEquals(historicProcessInstanceEntity1.getStartTime().getTime(), jobSummary.getStartTime().toGregorianCalendar().getTimeInMillis()); assertNull(jobSummary.getEndTime());
theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
lhsStatus = this.getStatus(); JobStatusEnum rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) { return false;
lhsStatus = this.getStatus(); JobStatusEnum rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) { return false;
lhsStatus = this.getStatus(); JobStatusEnum rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) { return false;
theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
if (statusShouldBeCopiedAndSet == Boolean.TRUE) { JobStatusEnum sourceStatus; sourceStatus = this.getStatus(); JobStatusEnum copyStatus = ((JobStatusEnum) strategy.copy(LocatorUtils.property(locator, "status", sourceStatus), sourceStatus, (this.status!= null))); copy.setStatus(copyStatus);
if (statusShouldBeCopiedAndSet == Boolean.TRUE) { JobStatusEnum sourceStatus; sourceStatus = this.getStatus(); JobStatusEnum copyStatus = ((JobStatusEnum) strategy.copy(LocatorUtils.property(locator, "status", sourceStatus), sourceStatus, (this.status!= null))); copy.setStatus(copyStatus);
if (statusShouldBeCopiedAndSet == Boolean.TRUE) { JobStatusEnum sourceStatus; sourceStatus = this.getStatus(); JobStatusEnum copyStatus = ((JobStatusEnum) strategy.copy(LocatorUtils.property(locator, "status", sourceStatus), sourceStatus, (this.status!= null))); copy.setStatus(copyStatus);