Add JSON examples for Integration Tests.

Resolves gh-67.
This commit is contained in:
John Blum
2020-05-06 00:45:06 -07:00
parent 68e7b54c90
commit 8aed3f95cd
4 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
[
{
"@type": "example.app.crm.model.Customer",
"id": 1,
"name": "Jon Doe"
},
{
"@type": "example.app.crm.model.Customer",
"id": 2,
"name": "Jane Doe"
},
{
"@type": "example.app.crm.model.Customer",
"id": 3,
"name": "Cookie Doe"
},
{
"@type": "example.app.crm.model.Customer",
"id": 4,
"name": "Fro Doe"
},
{
"@type": "example.app.crm.model.Customer",
"id": 5,
"name": "Ginger Doe"
},
{
"@type": "example.app.crm.model.Customer",
"id": 6,
"name": "Hoe Doe"
},
{
"@type": "example.app.crm.model.Customer",
"id": 7,
"name": "Joe Doe"
},
{
"@type": "example.app.crm.model.Customer",
"id": 8,
"name": "Pie Doe"
},
{
"@type": "example.app.crm.model.Customer",
"id": 9,
"name": "Sour Doe"
}
]

View File

@@ -0,0 +1,5 @@
{
"@type": "example.app.crm.model.Customer",
"id": 1,
"name": "Jon Doe"
}

View File

@@ -0,0 +1,36 @@
{
"@type": "example.app.pos.model.PurchaseOrder",
"id": 1,
"lineItems": [
{
"@type": "example.app.pos.model.LineItem",
"product": {
"@type": "example.app.pos.model.Product",
"name": "Apple iPad",
"price": 1499.00,
"category": "SHOPPING"
},
"quantity": 2
},
{
"@type": "example.app.pos.model.LineItem",
"product": {
"@type": "example.app.pos.model.Product",
"name": "Apple iPhone",
"price": 1249.00,
"category": "SHOPPING"
},
"quantity": 3
},
{
"@type": "example.app.pos.model.LineItem",
"product": {
"@type": "example.app.pos.model.Product",
"name": "Apple iPod",
"price": 599.00,
"category": "SHOPPING"
},
"quantity" : 1
}
]
}

View File

@@ -0,0 +1,16 @@
{
"regions" : [
{
"name": "One",
"data": [
{}
]
},
{
"name": "Two",
"data": [
{}
]
}
]
}