@Test public void testGetAccount() { accountService.getAccount(1); accountService.getAccount(1); accountService.getAccount(1); accountService.getAccount(1); accountService.getAccount(2); accountService.getAccount(1); accountService.getAccount(1); accountService.getAccount(2); accountService.getAccount(2); accountService.getAccount(2); accountService.getAccount(3); }
@Test public void testCacheClear() { accountService.getAccount(1); accountService.getAccount(2); accountService.getAccount(1); accountService.getAccount(2); System.out.println("=========Clean All Entity==============="); accountService.reload(); accountService.getAccount(1); accountService.getAccount(2); Account acc1 = accountService.getAccount(1); Account acc2 = accountService.getAccount(2); System.out.println("=========Update One Entity==============="); accountService.updateAccount(acc1); accountService.getAccount(1); accountService.getAccount(2); }