Exemplo n.º 1
0
 @Test
 public void testSave() {
   wordsDao.save(new Words("林祈松", "*****@*****.**", "感谢你们为我预定酒店和旅游团,我很开心可以你们沟通。"));
   wordsDao.save(new Words("韩文圣", "*****@*****.**", "你们好,谢谢你们!你们网站帮我们太多了。"));
   wordsDao.save(new Words("郑伟", "*****@*****.**", "感谢你们为我预定酒店和旅游团,我很开心可以你们沟通。"));
   wordsDao.save(new Words("陈荣庆", "*****@*****.**", "你们好,谢谢你们!你们网站帮我们太多了。"));
 }
Exemplo n.º 2
0
 @Test
 public void testGetWordss() {
   List<Words> list = wordsDao.getWordss();
   for (Words words : list) {
     System.out.println(words.getName());
   }
 }
Exemplo n.º 3
0
 @Test
 public void testDelete() {
   wordsDao.delete(1);
 }
Exemplo n.º 4
0
 @Test
 public void testGetPerson() {
   Words words = wordsDao.getWords(1);
   System.out.println(words.getName());
 }
Exemplo n.º 5
0
 @Test
 public void testUpdate() {
   Words words = wordsDao.getWords(1);
   words.setName("小丽");
   wordsDao.update(words);
 }