Пример #1
0
 @Test
 public void testUpdate() {
   Person person = personService.getPerson(1);
   // ....... web
   person.setName("zxx");
   personService.update(person);
 }
Пример #2
0
 @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());
 }
Пример #3
0
 @Test
 public void testGetPersons() {
   for (Person person : personService.getPersons()) {
     System.out.println(person.getName());
   }
 }