Multivalue array must not contain maps/objects
Hi Team,
Our AEM project test cases are Junit4 based. Recently we added Junit 5 dependency as well in POM.
Line causing below exception (with JUNIT 4, It used to work perfectly fine)
context.load().json("/empFile.json", "/emp");
empFile.json:
{
"empID": "xx57jmf",
"empType": "regular",
"personalinfo": {
"name": "ABC",
"geo": [
{
"id": "geo_456",
"coordinate": "xf73hj"
},
{
"id": "geo_456",
"coordinate": "xf73hj"
}
],
"education": [
{
"state": "Milan",
"duration":"4"
}
]
}
}
Almost all test cases are throwing below error:
org.apache.sling.jcr.contentparser.ParseException: Multivalue array must not contain maps/objects.