@Test void testDelete() { StyleSheet sheet = mock(StyleSheet.class); when(sheet.getId()).thenReturn("1"); decorator.delete(sheet); verify(delegate).delete(sheet); }
@Override public void delete(StyleSheet sheet) { checkAndUpdateAppSettings(sheet.getId()); super.delete(sheet); }
StyleSheetRepositoryDecorator extends AbstractRepositoryDecorator<StyleSheet> { @Override public void delete(StyleSheet sheet) { checkAndUpdateAppSettings(sheet.getId()); super.delete(sheet); } }
StyleSheetRepositoryDecorator extends AbstractRepositoryDecorator<StyleSheet> { @Override public void delete(StyleSheet sheet) { checkAndUpdateAppSettings(sheet.getId()); super.delete(sheet); } StyleSheetRepositoryDecorator(
      Repository<StyleSheet> delegateRepository, AppSettings appSettings); }
StyleSheetRepositoryDecorator extends AbstractRepositoryDecorator<StyleSheet> { @Override public void delete(StyleSheet sheet) { checkAndUpdateAppSettings(sheet.getId()); super.delete(sheet); } StyleSheetRepositoryDecorator(
      Repository<StyleSheet> delegateRepository, AppSettings appSettings); @Override void delete(StyleSheet sheet); @Override void deleteById(Object id); @Override void deleteAll(); @Override void delete(Stream<StyleSheet> styleSheetStream); @Override void deleteAll(Stream<Object> ids); }
StyleSheetRepositoryDecorator extends AbstractRepositoryDecorator<StyleSheet> { @Override public void delete(StyleSheet sheet) { checkAndUpdateAppSettings(sheet.getId()); super.delete(sheet); } StyleSheetRepositoryDecorator(
      Repository<StyleSheet> delegateRepository, AppSettings appSettings); @Override void delete(StyleSheet sheet); @Override void deleteById(Object id); @Override void deleteAll(); @Override void delete(Stream<StyleSheet> styleSheetStream); @Override void deleteAll(Stream<Object> ids);  }