I have a rest endpoint which returns List
. I am trying to test this rest endpoint as
@Test
public void testGet
That looks like a Jackson error, where it's expecting to parse an array (which would begin with a '[') but it's encountering the beginning token for an object ('{'). From looking at your code, Im guessing it's trying deserialise JSON into your List but it's getting the JSON for an object.
What does the JSON your REST endpoint returns look like? It ought to look like this
[
{
// JSON for VariablePresentation value 0
"field0":
},
]