mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-07 03:06:03 +08:00
support enum testing
This commit is contained in:
20
MyEnumField.java
Normal file
20
MyEnumField.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package org.json.junit;
|
||||
|
||||
public enum MyEnumField {
|
||||
VAL1(1, "val 1"),
|
||||
VAL2(2, "val 2"),
|
||||
VAL3(3, "val 3");
|
||||
|
||||
private String value;
|
||||
private Integer intVal;
|
||||
private MyEnumField(Integer intVal, String value) {
|
||||
this.value = value;
|
||||
this.intVal = intVal;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public Integer getIntVal() {
|
||||
return intVal;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user