@Test public void testExec_WithVariousIds() throws Exception { BaseIdRequest request = new BaseIdRequest(this.daId); BaseJobResponse response = this.service.exec(request, this.em); Assert.assertNotNull(response); assertEquals(this.jobId, response.getJobId()); }
@Override protected BaseJobResponse exec(BaseIdRequest request, EntityManager em) throws Exception { this.da = em.find(DistributedAppliance.class, request.getId()); validate(em, request.getId()); Long jobId = this.daConformJobFactory.startDAConformJob(em, this.da); BaseJobResponse response = new BaseJobResponse(); response.setJobId(jobId); return response; }
SyncDistributedApplianceService extends ServiceDispatcher<BaseIdRequest, BaseJobResponse> implements SyncDistributedApplianceServiceApi { @Override protected BaseJobResponse exec(BaseIdRequest request, EntityManager em) throws Exception { this.da = em.find(DistributedAppliance.class, request.getId()); validate(em, request.getId()); Long jobId = this.daConformJobFactory.startDAConformJob(em, this.da); BaseJobResponse response = new BaseJobResponse(); response.setJobId(jobId); return response; } }
SyncDistributedApplianceService extends ServiceDispatcher<BaseIdRequest, BaseJobResponse> implements SyncDistributedApplianceServiceApi { @Override protected BaseJobResponse exec(BaseIdRequest request, EntityManager em) throws Exception { this.da = em.find(DistributedAppliance.class, request.getId()); validate(em, request.getId()); Long jobId = this.daConformJobFactory.startDAConformJob(em, this.da); BaseJobResponse response = new BaseJobResponse(); response.setJobId(jobId); return response; }  }
SyncDistributedApplianceService extends ServiceDispatcher<BaseIdRequest, BaseJobResponse> implements SyncDistributedApplianceServiceApi { @Override protected BaseJobResponse exec(BaseIdRequest request, EntityManager em) throws Exception { this.da = em.find(DistributedAppliance.class, request.getId()); validate(em, request.getId()); Long jobId = this.daConformJobFactory.startDAConformJob(em, this.da); BaseJobResponse response = new BaseJobResponse(); response.setJobId(jobId); return response; }   }
SyncDistributedApplianceService extends ServiceDispatcher<BaseIdRequest, BaseJobResponse> implements SyncDistributedApplianceServiceApi { @Override protected BaseJobResponse exec(BaseIdRequest request, EntityManager em) throws Exception { this.da = em.find(DistributedAppliance.class, request.getId()); validate(em, request.getId()); Long jobId = this.daConformJobFactory.startDAConformJob(em, this.da); BaseJobResponse response = new BaseJobResponse(); response.setJobId(jobId); return response; }    }