@Test void testDeleteAclClass() { String type = "MyType"; mutableAclClassService.deleteAclClass(type); verify(jdbcTemplate).update("delete from acl_class where class=?", type); verify(aclCache).clearCache(); }
@Transactional @Override public void deleteAclClass(String type) { LOGGER.debug("Delete AclClass for type {}.", type); jdbcTemplate.update(SQL_DELETE_FROM_ACL_CLASS, type); aclClassCache.invalidate(type); aclCache.clearCache(); }
MutableAclClassServiceImpl implements MutableAclClassService { @Transactional @Override public void deleteAclClass(String type) { LOGGER.debug("Delete AclClass for type {}.", type); jdbcTemplate.update(SQL_DELETE_FROM_ACL_CLASS, type); aclClassCache.invalidate(type); aclCache.clearCache(); } }
MutableAclClassServiceImpl implements MutableAclClassService { @Transactional @Override public void deleteAclClass(String type) { LOGGER.debug("Delete AclClass for type {}.", type); jdbcTemplate.update(SQL_DELETE_FROM_ACL_CLASS, type); aclClassCache.invalidate(type); aclCache.clearCache(); } MutableAclClassServiceImpl(JdbcTemplate jdbcTemplate, AclCache aclCache); }
MutableAclClassServiceImpl implements MutableAclClassService { @Transactional @Override public void deleteAclClass(String type) { LOGGER.debug("Delete AclClass for type {}.", type); jdbcTemplate.update(SQL_DELETE_FROM_ACL_CLASS, type); aclClassCache.invalidate(type); aclCache.clearCache(); } MutableAclClassServiceImpl(JdbcTemplate jdbcTemplate, AclCache aclCache); @Transactional @Override void createAclClass(String type, Class<?> idType); @Transactional @Override void deleteAclClass(String type); @Override void clearCache(); @SuppressWarnings("ConstantConditions") @Override boolean hasAclClass(String type); @Override Collection<String> getAclClassTypes(); }
MutableAclClassServiceImpl implements MutableAclClassService { @Transactional @Override public void deleteAclClass(String type) { LOGGER.debug("Delete AclClass for type {}.", type); jdbcTemplate.update(SQL_DELETE_FROM_ACL_CLASS, type); aclClassCache.invalidate(type); aclCache.clearCache(); } MutableAclClassServiceImpl(JdbcTemplate jdbcTemplate, AclCache aclCache); @Transactional @Override void createAclClass(String type, Class<?> idType); @Transactional @Override void deleteAclClass(String type); @Override void clearCache(); @SuppressWarnings("ConstantConditions") @Override boolean hasAclClass(String type); @Override Collection<String> getAclClassTypes();  }