对DAO编写单元测试[2]

发表于:2010-04-26来源:作者:点击数: 标签:单元DAOdao编写
对DAO编写 单元测试 [2] 软件测试 private long createdDate; // 创建时间 private long lockDate; // 锁定时间 public User() {} public User(String username, String password, boolean admin, long lastSignOnDate) { this.username = username; this.pa

  对DAO编写单元测试[2]  软件测试 

     private long createdDate; // 创建时间

  private long lockDate; // 锁定时间

  public User() {}

  public User(String username, String password, boolean admin, long lastSignOnDate) {

  this.username = username;

  this.password = password;

  this.admin = admin;

  }

  @Id

  @Column(updatable=false, length=20)

  @Pattern(regex=REGEX_USERNAME)

  public String getUsername() { return username; }

  public void setUsername(String username) { this.username = username; }

  @Column(nullable=false, length=32)

  @Pattern(regex=REGEX_PASSWORD)

  public String getPassword() { return password; }

  public void setPassword(String password) { this.password = password; }

  @Column(nullable=false, length=50)

  @Pattern(regex=REGEX_EMAIL)

  public String getEmail() { return email; }

  public void setEmail(String email) { this.email = email; }

原文转自:http://www.ltesting.net