### Question:
JdbcSpitterRepository implements SpitterRepository { @Cacheable(key="123", value = { "spittleCache" }) public List<Spitter> findAll() { System.out.println("------------查找全部-----------"); return jdbcTemplate.query("select id, username, password, fullname, email, updateByEmail from Spitter order by id", new SpitterRowMapper()); } @Autowired  JdbcSpitterRepository(JdbcTemplate jdbcTemplate); @CacheEvict(key="123", value = { "spittleCache" }) long count(); @CacheEvict(key="123", value = { "spittleCache" }) Spitter save(Spitter spitter); Spitter findOne(long id); Spitter findByUsername(String username); @Cacheable(key="123", value = { "spittleCache" }) List<Spitter> findAll();  }### Answer:
@Test @Transactional public void findAll() { List<Spitter> spitters = spitterRepository.findAll(); assertEquals(4, spitters.size()); assertSpitter(0, spitters.get(0)); assertSpitter(1, spitters.get(1)); assertSpitter(2, spitters.get(2)); assertSpitter(3, spitters.get(3)); }