#2173 - ebean-test: Add assertContains - DbJson.of(entityBean).assertContains(...)

This commit is contained in:
Robin Bygrave committed 2021-02-19 09:29:06 +13:00
1 parent b4ae721998
commit b7da2cbd97
23 files changed
+727 -31

No files matched your search

@@ -0,0 +1,4 @@
{
"name": "something-contains-me",
"version": 1
}
@@ -0,0 +1,5 @@
{
"name": "something-contains-me",
"other": "YeahNah",
"version": 1
}
@@ -1,6 +1,7 @@
{
"id": _,
"name": "something",
"other": null,
"whenModified": _,
"version": 1
}
@@ -1,11 +1,13 @@
[ {
"id": "*",
"name": "something",
"other": null,
"whenModified": "*",
"version": 1
}, {
"id": "*",
"name": "other",
"other": null,
"whenModified": "*",
"version": 1
} ]
@@ -0,0 +1,9 @@
{
"some": "val",
"someNull": "actualNotNull",
"matchNull": null,
"nullObject": {
"id": 42
}
}
@@ -0,0 +1,7 @@
{
"some": "val",
"someNull": null,
"extra": "notThere",
"matchNull": null,
"nullObject": null
}
@@ -0,0 +1,3 @@
{
"some": "val"
}
@@ -0,0 +1,3 @@
{
"some": 42
}
@@ -0,0 +1,26 @@
{
"someString1": "aaaa",
"someString2": "string2",
"someValue1": 99,
"someValue2": 2,
"someArray1": [
"a"
],
"someArray2": [
{
"value1": [],
"value2": {},
"array1": [
"1"
],
"object1": {
"val5": "a",
"val6": 1
},
"object2": null,
"objectNull": {
"val": []
}
}
]
}
@@ -0,0 +1,15 @@
{
"someString1": "string1",
"someValue1": 1,
"someArray2": [
{
"value1": 11,
"array1": [],
"object2": {
"v1": "v1",
"v4": []
},
"objectNull": null
}
]
}
@@ -0,0 +1,27 @@
{
"someString1": "string1",
"someString2": "string2",
"someValue1": 1,
"someValue2": 2,
"someArray1": [
1,
2,
3,
4
],
"someArray2": [
{
"value1": 11,
"value2": "22",
"array1": [],
"object1": {},
"object2": {
"v1": "v1",
"v2": 1,
"v3": {},
"v4": []
},
"objectNull": null
}
]
}
@@ -0,0 +1,10 @@
[
{
"id": 42,
"name": "foo"
},
{
"id": 55,
"name": "bar"
}
]
@@ -0,0 +1,4 @@
{
"id": 42,
"name": "foo"
}