@Test void testCreateAclClass() { String type = "MyType"; mutableAclClassService.createAclClass(type, String.class); verify(jdbcTemplate) .update( "insert into acl_class (class, class_id_type) values (?, ?)", type, "java.lang.String"); verifyZeroInteractions(aclCache); }
@Transactional @Override public void createAclClass(String type, Class<?> idType) { LOGGER.debug("Create AclClass for type {}.", type); jdbcTemplate.update(SQL_INSERT_INTO_ACL_CLASS, type, idType.getCanonicalName()); aclClassCache.invalidate(type); }
MutableAclClassServiceImpl implements MutableAclClassService { @Transactional @Override public void createAclClass(String type, Class<?> idType) { LOGGER.debug("Create AclClass for type {}.", type); jdbcTemplate.update(SQL_INSERT_INTO_ACL_CLASS, type, idType.getCanonicalName()); aclClassCache.invalidate(type); } }
MutableAclClassServiceImpl implements MutableAclClassService { @Transactional @Override public void createAclClass(String type, Class<?> idType) { LOGGER.debug("Create AclClass for type {}.", type); jdbcTemplate.update(SQL_INSERT_INTO_ACL_CLASS, type, idType.getCanonicalName()); aclClassCache.invalidate(type); } MutableAclClassServiceImpl(JdbcTemplate jdbcTemplate, AclCache aclCache); }
MutableAclClassServiceImpl implements MutableAclClassService { @Transactional @Override public void createAclClass(String type, Class<?> idType) { LOGGER.debug("Create AclClass for type {}.", type); jdbcTemplate.update(SQL_INSERT_INTO_ACL_CLASS, type, idType.getCanonicalName()); aclClassCache.invalidate(type); } 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 createAclClass(String type, Class<?> idType) { LOGGER.debug("Create AclClass for type {}.", type); jdbcTemplate.update(SQL_INSERT_INTO_ACL_CLASS, type, idType.getCanonicalName()); aclClassCache.invalidate(type); } 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();  }