mirror of
https://github.com/Estom/notes.git
synced 2026-02-04 11:04:21 +08:00
Java内容重新整理删除过期的东西
This commit is contained in:
70
Java/JavaDemo/codedemo/mockito/User.java
Normal file
70
Java/JavaDemo/codedemo/mockito/User.java
Normal file
@@ -0,0 +1,70 @@
|
||||
package cn.aofeng.demo.mockito;
|
||||
|
||||
/**
|
||||
* 用户信息。
|
||||
*
|
||||
* @author <a href="mailto:aofengblog@163.com">聂勇</a>
|
||||
*/
|
||||
public class User {
|
||||
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
|
||||
private int sex;
|
||||
|
||||
private int age;
|
||||
|
||||
private String address;
|
||||
|
||||
public User() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
public User(long userId, String userName, int age) {
|
||||
this.id = userId;
|
||||
this.name = userName;
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(int sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public int getAge() {
|
||||
return age;
|
||||
}
|
||||
|
||||
public void setAge(int age) {
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user