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:
Phillip Webb
2016-03-22 10:46:07 -07:00
parent 45c4f5f3f1
commit 24ab2bd891
27 changed files with 4527 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{
"gnirps":[
"boot",
"framework"
]
}

View File

@@ -0,0 +1,4 @@
{
"name" : "Spring",
"age" : 123
}

View File

@@ -0,0 +1,6 @@
{
"spring":[
"framework",
"boot"
]
}

View File

@@ -0,0 +1,19 @@
{
"familyMembers":[
{
"name":"Homer"
},
{
"name":"Marge"
},
{
"name":"Bart"
},
{
"name":"Lisa"
},
{
"name":"Maggie"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"spring":[
"boot",
"framework"
]
}

View File

@@ -0,0 +1,19 @@
{
"str":"foo",
"num":5,
"bool":true,
"arr":[
42
],
"colorMap":{
"red":"rojo"
},
"whitespace":" ",
"emptyString":"",
"emptyArray":[
],
"emptyMap":{
}
}