mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
data class for recursive test
This commit is contained in:
parent
b5bcb68968
commit
4565bddcbb
22
src/test/java/org/json/junit/data/RecursiveBean.java
Normal file
22
src/test/java/org/json/junit/data/RecursiveBean.java
Normal file
@ -0,0 +1,22 @@
|
||||
package org.json.junit.data;
|
||||
|
||||
/**
|
||||
* test class for verifying if recursively defined bean can be correctly identified
|
||||
* @author Zetmas
|
||||
*
|
||||
*/
|
||||
public class RecursiveBean {
|
||||
private String name;
|
||||
private Object reference;
|
||||
public String getName() { return name; }
|
||||
public Object getRef() {return reference;}
|
||||
|
||||
public RecursiveBean(String name) {
|
||||
this.name = name;
|
||||
reference = null;
|
||||
}
|
||||
public RecursiveBean(String name, Object refObj) {
|
||||
this.name = name;
|
||||
reference = refObj;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user