@Test(expected = GriffinException.BadRequestException.class) public void testCreateForFailureWithConnectorNull() throws Exception { String measureName = "view_item_hourly"; DataConnector dcSource = createDataConnector(null, "default", "test_data_src", "dt=#YYYYMMdd# AND hour =#HH#"); DataConnector dcTarget = createDataConnector(null, "default", "test_data_tgt", "dt=#YYYYMMdd# AND hour =#HH#"); GriffinMeasure measure = createGriffinMeasure(measureName, dcSource, dcTarget); operator.create(measure); }
@Override public Measure create(Measure measure) { validateMeasure(measure); return measureRepo.save(measure); }
GriffinMeasureOperatorImpl implements MeasureOperator { @Override public Measure create(Measure measure) { validateMeasure(measure); return measureRepo.save(measure); } }
GriffinMeasureOperatorImpl implements MeasureOperator { @Override public Measure create(Measure measure) { validateMeasure(measure); return measureRepo.save(measure); } @Autowired  GriffinMeasureOperatorImpl(MeasureRepo<Measure> measureRepo,
                                      JobServiceImpl jobService); }
GriffinMeasureOperatorImpl implements MeasureOperator { @Override public Measure create(Measure measure) { validateMeasure(measure); return measureRepo.save(measure); } @Autowired  GriffinMeasureOperatorImpl(MeasureRepo<Measure> measureRepo,
                                      JobServiceImpl jobService); @Override Measure create(Measure measure); @Override Measure update(Measure measure); @Override void delete(Measure measure); }
GriffinMeasureOperatorImpl implements MeasureOperator { @Override public Measure create(Measure measure) { validateMeasure(measure); return measureRepo.save(measure); } @Autowired  GriffinMeasureOperatorImpl(MeasureRepo<Measure> measureRepo,
                                      JobServiceImpl jobService); @Override Measure create(Measure measure); @Override Measure update(Measure measure); @Override void delete(Measure measure);  }