import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
-import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
public final String foobar = "aux";
};
- originalType = JobType.ServiceInstantiation;
- jobUnderTest = new JobAdapterImpl().createJob(
+ originalType = JobType.MacroServiceInstantiation;
+ jobUnderTest = new JobAdapterImpl().createServiceInstantiationJob(
originalType,
originalData,
UUID.randomUUID(),
"my user id",
+ "optimisticUniqueServiceInstanceName",
RandomUtils.nextInt()
);
}
assertNextJobAfterExecuteJob(null, new String[]{"status"}, allOf(
hasProperty("status", is(Job.JobStatus.STOPPED)),
- hasProperty("data", hasEntry("request", originalData)),
+ hasProperty("sharedData", hasProperty("request", is(originalData))),
hasProperty("type", is(originalType)))
);
}