@Test public void testDeleteForSuccess() { ExternalMeasure measure = createExternalMeasure("view_item_hourly"); given(measureRepo.save(measure)).willReturn(measure); operator.delete(measure); verify(measureRepo, times(1)).save(measure); }
@Override public void delete(Measure measure) { ExternalMeasure em = (ExternalMeasure) measure; em.setDeleted(true); em.getVirtualJob().setDeleted(true); measureRepo.save(em); }
ExternalMeasureOperatorImpl implements MeasureOperator { @Override public void delete(Measure measure) { ExternalMeasure em = (ExternalMeasure) measure; em.setDeleted(true); em.getVirtualJob().setDeleted(true); measureRepo.save(em); } }
ExternalMeasureOperatorImpl implements MeasureOperator { @Override public void delete(Measure measure) { ExternalMeasure em = (ExternalMeasure) measure; em.setDeleted(true); em.getVirtualJob().setDeleted(true); measureRepo.save(em); }  }
ExternalMeasureOperatorImpl implements MeasureOperator { @Override public void delete(Measure measure) { ExternalMeasure em = (ExternalMeasure) measure; em.setDeleted(true); em.getVirtualJob().setDeleted(true); measureRepo.save(em); }  @Override @Transactional Measure create(Measure measure); @Override Measure update(Measure measure); @Override void delete(Measure measure); }
ExternalMeasureOperatorImpl implements MeasureOperator { @Override public void delete(Measure measure) { ExternalMeasure em = (ExternalMeasure) measure; em.setDeleted(true); em.getVirtualJob().setDeleted(true); measureRepo.save(em); }  @Override @Transactional Measure create(Measure measure); @Override Measure update(Measure measure); @Override void delete(Measure measure);  }