@Test void testGetAclClassTypes() { List<String> aclClassTypes = asList("MyType0", "MyType1"); when(jdbcTemplate.queryForList("select class from acl_class", String.class)) .thenReturn(aclClassTypes); assertEquals(aclClassTypes, mutableAclClassService.getAclClassTypes()); verifyZeroInteractions(aclCache); }
@Override public Collection<String> getAclClassTypes() { return jdbcTemplate.queryForList(SQL_SELECT_ACL_CLASS, String.class); }
MutableAclClassServiceImpl implements MutableAclClassService { @Override public Collection<String> getAclClassTypes() { return jdbcTemplate.queryForList(SQL_SELECT_ACL_CLASS, String.class); } }
MutableAclClassServiceImpl implements MutableAclClassService { @Override public Collection<String> getAclClassTypes() { return jdbcTemplate.queryForList(SQL_SELECT_ACL_CLASS, String.class); } MutableAclClassServiceImpl(JdbcTemplate jdbcTemplate, AclCache aclCache); }
MutableAclClassServiceImpl implements MutableAclClassService { @Override public Collection<String> getAclClassTypes() { return jdbcTemplate.queryForList(SQL_SELECT_ACL_CLASS, String.class); } 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 { @Override public Collection<String> getAclClassTypes() { return jdbcTemplate.queryForList(SQL_SELECT_ACL_CLASS, String.class); } 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();  }