mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-08 11:34:43 +08:00
Adds new tests for testing bean->JSONObject mapping
This commit is contained in:
29
src/test/java/org/json/junit/data/GenericBeanInt.java
Normal file
29
src/test/java/org/json/junit/data/GenericBeanInt.java
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.json.junit.data;
|
||||
|
||||
/**
|
||||
* @author john
|
||||
*
|
||||
*/
|
||||
public class GenericBeanInt extends GenericBean<Integer> {
|
||||
/** */
|
||||
final char a = 'A';
|
||||
|
||||
/** return the a */
|
||||
public char getA() {
|
||||
return a;
|
||||
}
|
||||
|
||||
/** return false. should not be beanable */
|
||||
public boolean getable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/** */
|
||||
public GenericBeanInt(Integer genericValue) {
|
||||
super(genericValue);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user