@BeforeMethod(groups = "unit") public void init() { context = new ActivityContext(); context.setCredentialStr(Credentials.getMock().toString()); jobDescription = new JobDescription(); jobDescription.setName(UUID.randomUUID().toString()); jobDescription.setId(UUID.randomUUID().toString()); }
private void verifyEvent(final EventBase eventBase) { assert eventBase.getJobId().equals(jobDescription.getId()); assert eventBase.getJobName().equals(jobDescription.getName()); assert eventBase.getUserId().equals(context.getCredential().getIdentity()); }