コード例 #1
0
 public void testFindCQUPTUserByUserName() {
   this.init();
   try {
     CQUPTUser u = submitInfoMemberDao.findCQUPTUserByUserName("爱测试");
     System.out.println(u.getUserId());
     System.out.println("测试成功!");
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
コード例 #2
0
  public void testAddInfoMember() {
    this.init();
    SciencePaperAuthor sciencePaperAuthor = new SciencePaperAuthor();
    SciencePaper sciencePaper = new SciencePaper();
    sciencePaper.setPaperId("20120725103824655");
    sciencePaperAuthor.setSciencePaper(sciencePaper);
    sciencePaperAuthor.setMemberName("爱测试");
    sciencePaperAuthor.setAuthorId("123456");
    submitInfoMemberDao.addInfoMember(sciencePaperAuthor);
    try {

      System.out.println("测试成功!");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }