@Test public void testUpdate() { Person person = personService.getPerson(1); // ....... web person.setName("zxx"); personService.update(person); }
@Test public void testGetPerson() { System.out.println("开始取数据"); Person person = personService.getPerson(3); System.out.println(person.getName()); try { Thread.sleep(15000); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println("第二次去数据"); Person person1 = personService.getPerson(3); System.out.println(person1.getName()); }
@Test public void testGetPersons() { for (Person person : personService.getPersons()) { System.out.println(person.getName()); } }