Ejemplo n.º 1
0
 @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());
 }
Ejemplo n.º 2
0
 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());
 }