Add JSON examples for Integration Tests.
Resolves gh-67.
This commit is contained in:
47
spring-geode/src/test/resources/data-example-doefamily.json
Normal file
47
spring-geode/src/test/resources/data-example-doefamily.json
Normal 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"
|
||||
}
|
||||
]
|
||||
5
spring-geode/src/test/resources/data-example-jondoe.json
Normal file
5
spring-geode/src/test/resources/data-example-jondoe.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"@type": "example.app.crm.model.Customer",
|
||||
"id": 1,
|
||||
"name": "Jon Doe"
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
16
spring-geode/src/test/resources/data.json
Normal file
16
spring-geode/src/test/resources/data.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"regions" : [
|
||||
{
|
||||
"name": "One",
|
||||
"data": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Two",
|
||||
"data": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user