Open nganori opened 1 week ago
Do we support reference reconstructing? example:
// service impl
boolean mahFunc(List<X> arr) {
return arr.get(0) == arr.get(1);
}
// input
List<X> arr = new ArrayList<>();
X item = new X();
arr.add(item);
arr.add(item);
// test
assertTrue(mahFunc(arr));
Given a json file, think a way to to deserialize json to correct type, it means the result can be casted to expected type
Example 1
Expected result: Object Student (id = 123, name = Studen1)
Example 2
Expected result: List [Student (id = 123, name = Studen1), Student (id = 124, name = Studen2)]
Example 3
Expected result: Object is Map<String: class, Map<String: gender, Student>>