Skip to content

Commit 4565bdd

Browse files
author
Zach
committed
data class for recursive test
1 parent b5bcb68 commit 4565bdd

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package org.json.junit.data;
2+
3+
/**
4+
* test class for verifying if recursively defined bean can be correctly identified
5+
* @author Zetmas
6+
*
7+
*/
8+
public class RecursiveBean {
9+
private String name;
10+
private Object reference;
11+
public String getName() { return name; }
12+
public Object getRef() {return reference;}
13+
14+
public RecursiveBean(String name) {
15+
this.name = name;
16+
reference = null;
17+
}
18+
public RecursiveBean(String name, Object refObj) {
19+
this.name = name;
20+
reference = refObj;
21+
}
22+
}

0 commit comments

Comments
 (0)