mirror of
https://github.com/Estom/notes.git
synced 2026-02-04 19:13:24 +08:00
Java内容重新整理删除过期的东西
This commit is contained in:
50
Java/JavaDemo/codedemo/mockito/Commodity.java
Normal file
50
Java/JavaDemo/codedemo/mockito/Commodity.java
Normal file
@@ -0,0 +1,50 @@
|
||||
package cn.aofeng.demo.mockito;
|
||||
|
||||
/**
|
||||
* 商品信息。
|
||||
*
|
||||
* @author <a href="mailto:aofengblog@163.com">聂勇</a>
|
||||
*/
|
||||
public class Commodity {
|
||||
|
||||
private String id;
|
||||
|
||||
private String name;
|
||||
|
||||
private int type;
|
||||
|
||||
public Commodity() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
public Commodity(String id, String name, int type) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user