@Test public final void test_save() { InstrumentType expextedResult = getInstrumentTypes().get(0); when(instrumentTypeRepository.save(any(InstrumentType.class))).thenReturn(expextedResult); InstrumentType actualResult = instrumentTypeService.save(expextedResult); assertEquals(expextedResult, actualResult); }
@Transactional public InstrumentType save(InstrumentType instrumentType) { return instrumentTypeRepository.save(instrumentType); }
InstrumentTypeService { @Transactional public InstrumentType save(InstrumentType instrumentType) { return instrumentTypeRepository.save(instrumentType); } }
InstrumentTypeService { @Transactional public InstrumentType save(InstrumentType instrumentType) { return instrumentTypeRepository.save(instrumentType); } @Autowired  InstrumentTypeService(SmartValidator validator, InstrumentTypeRepository instrumentTypeRepository); }
InstrumentTypeService { @Transactional public InstrumentType save(InstrumentType instrumentType) { return instrumentTypeRepository.save(instrumentType); } @Autowired  InstrumentTypeService(SmartValidator validator, InstrumentTypeRepository instrumentTypeRepository); @Transactional List<InstrumentType> create(List<InstrumentType> instrumentTypes, BindingResult errors,
            RequestInfo requestInfo); @Transactional List<InstrumentType> update(List<InstrumentType> instrumentTypes, BindingResult errors,
            RequestInfo requestInfo); @Transactional List<InstrumentType> delete(List<InstrumentType> instrumentTypes, BindingResult errors,
            RequestInfo requestInfo); @Transactional InstrumentType delete(InstrumentType instrumentType); List<InstrumentType> fetchRelated(List<InstrumentType> instrumenttypes); Pagination<InstrumentType> search(InstrumentTypeSearch instrumentTypeSearch); @Transactional InstrumentType save(InstrumentType instrumentType); @Transactional InstrumentType update(InstrumentType instrumentType); }
InstrumentTypeService { @Transactional public InstrumentType save(InstrumentType instrumentType) { return instrumentTypeRepository.save(instrumentType); } @Autowired  InstrumentTypeService(SmartValidator validator, InstrumentTypeRepository instrumentTypeRepository); @Transactional List<InstrumentType> create(List<InstrumentType> instrumentTypes, BindingResult errors,
            RequestInfo requestInfo); @Transactional List<InstrumentType> update(List<InstrumentType> instrumentTypes, BindingResult errors,
            RequestInfo requestInfo); @Transactional List<InstrumentType> delete(List<InstrumentType> instrumentTypes, BindingResult errors,
            RequestInfo requestInfo); @Transactional InstrumentType delete(InstrumentType instrumentType); List<InstrumentType> fetchRelated(List<InstrumentType> instrumenttypes); Pagination<InstrumentType> search(InstrumentTypeSearch instrumentTypeSearch); @Transactional InstrumentType save(InstrumentType instrumentType); @Transactional InstrumentType update(InstrumentType instrumentType); static final String ACTION_CREATE; static final String ACTION_UPDATE; static final String ACTION_DELETE; static final String ACTION_VIEW; static final String ACTION_EDIT; static final String ACTION_SEARCH; }