Add utilities to help with JSON testing
Add Jackson, Gson and Basic String helper classes that allow AssertJ assertions to be used to test JSON. Fixes gh-5471
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"gnirps":[
|
||||
"boot",
|
||||
"framework"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name" : "Spring",
|
||||
"age" : 123
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"spring":[
|
||||
"framework",
|
||||
"boot"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"familyMembers":[
|
||||
{
|
||||
"name":"Homer"
|
||||
},
|
||||
{
|
||||
"name":"Marge"
|
||||
},
|
||||
{
|
||||
"name":"Bart"
|
||||
},
|
||||
{
|
||||
"name":"Lisa"
|
||||
},
|
||||
{
|
||||
"name":"Maggie"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"spring":[
|
||||
"boot",
|
||||
"framework"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"str":"foo",
|
||||
"num":5,
|
||||
"bool":true,
|
||||
"arr":[
|
||||
42
|
||||
],
|
||||
"colorMap":{
|
||||
"red":"rojo"
|
||||
},
|
||||
"whitespace":" ",
|
||||
"emptyString":"",
|
||||
"emptyArray":[
|
||||
|
||||
],
|
||||
"emptyMap":{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user