[04/24] olingo-odata2 git commit: [OLINGO-1253]Client Module for Olingo v2

2018-04-08 Thread archanarai
http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/JsonRoom_InlineEmployeesToTeam.json
--
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/JsonRoom_InlineEmployeesToTeam.json
 
b/odata2-lib/odata-client-core/src/test/resources/JsonRoom_InlineEmployeesToTeam.json
new file mode 100644
index 000..979e39a
--- /dev/null
+++ 
b/odata2-lib/odata-client-core/src/test/resources/JsonRoom_InlineEmployeesToTeam.json
@@ -0,0 +1,79 @@
+{
+  "d": {
+"__metadata": {
+  "id": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Rooms('1')",
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Rooms('1')",
+  "type": "RefScenario.Room",
+  "etag": "W/\"1\""
+},
+"Id": "1",
+"Name": "Room 1",
+"Seats": 1,
+"Version": 1,
+"nr_Employees": {
+  "results": [
+{
+  "__metadata": {
+"id": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')",
+"uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')",
+"type": "RefScenario.Employee",
+"content_type": "image/jpeg",
+"media_src": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')/$value",
+"edit_media": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')/$value"
+  },
+  "EmployeeId": "1",
+  "EmployeeName": "Walter Winter",
+  "ManagerId": "1",
+  "RoomId": "1",
+  "TeamId": "1",
+  "Location": {
+"__metadata": {
+  "type": "RefScenario.c_Location"
+},
+"City": {
+  "__metadata": {
+"type": "RefScenario.c_City"
+  },
+  "PostalCode": "69124",
+  "CityName": "Heidelberg"
+},
+"Country": "Germany"
+  },
+  "Age": 52,
+  "EntryDate": "/Date(91514880)/",
+  "ImageUrl": "Employees('1')/$value",
+  "ne_Manager": {
+"__deferred": {
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')/ne_Manager"
+}
+  },
+  "ne_Team": {
+"__metadata": {
+  "id": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Teams('1')",
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Teams('1')",
+  "type": "RefScenario.Team"
+},
+"Id": "1",
+"Name": "Team 1",
+"isScrumTeam": false,
+"nt_Employees": {
+  "__deferred": {
+"uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Teams('1')/nt_Employees"
+  }
+}
+  },
+  "ne_Room": {
+"__deferred": {
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')/ne_Room"
+}
+  }
+}
+  ]
+},
+"nr_Building": {
+  "__deferred": {
+"uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Rooms('1')/nr_Building"
+  }
+}
+  }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/JsonRoomsToEmployeesWithInlineTeams.json
--
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/JsonRoomsToEmployeesWithInlineTeams.json
 
b/odata2-lib/odata-client-core/src/test/resources/JsonRoomsToEmployeesWithInlineTeams.json
new file mode 100644
index 000..671dbb6
--- /dev/null
+++ 
b/odata2-lib/odata-client-core/src/test/resources/JsonRoomsToEmployeesWithInlineTeams.json
@@ -0,0 +1,118 @@
+{
+  "d": {
+"results": [
+  {
+"__metadata": {
+  "id": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('2')",
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('2')",
+  "type": "RefScenario.Employee",
+  "content_type": "image/jpeg",
+  "media_src": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('2')/$value",
+  "edit_media": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('2')/$value"
+},
+"EmployeeId": "2",
+"EmployeeName": "Frederic Fall",
+"ManagerId": "1",
+"RoomId": "2",
+"TeamId": "1",
+"Location": {
+  "__metadata": {
+"type": "RefScenario.c_Location"
+  },
+  "City": {
+"__metadata": {
+  "type

[04/24] olingo-odata2 git commit: [OLINGO-1253]Client Module for Olingo v2

2018-04-02 Thread archanarai
http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/9e949e40/odata2-lib/odata-client-core/src/test/resources/JsonRoom_InlineEmployeesToTeam.json
--
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/JsonRoom_InlineEmployeesToTeam.json
 
b/odata2-lib/odata-client-core/src/test/resources/JsonRoom_InlineEmployeesToTeam.json
new file mode 100644
index 000..979e39a
--- /dev/null
+++ 
b/odata2-lib/odata-client-core/src/test/resources/JsonRoom_InlineEmployeesToTeam.json
@@ -0,0 +1,79 @@
+{
+  "d": {
+"__metadata": {
+  "id": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Rooms('1')",
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Rooms('1')",
+  "type": "RefScenario.Room",
+  "etag": "W/\"1\""
+},
+"Id": "1",
+"Name": "Room 1",
+"Seats": 1,
+"Version": 1,
+"nr_Employees": {
+  "results": [
+{
+  "__metadata": {
+"id": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')",
+"uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')",
+"type": "RefScenario.Employee",
+"content_type": "image/jpeg",
+"media_src": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')/$value",
+"edit_media": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')/$value"
+  },
+  "EmployeeId": "1",
+  "EmployeeName": "Walter Winter",
+  "ManagerId": "1",
+  "RoomId": "1",
+  "TeamId": "1",
+  "Location": {
+"__metadata": {
+  "type": "RefScenario.c_Location"
+},
+"City": {
+  "__metadata": {
+"type": "RefScenario.c_City"
+  },
+  "PostalCode": "69124",
+  "CityName": "Heidelberg"
+},
+"Country": "Germany"
+  },
+  "Age": 52,
+  "EntryDate": "/Date(91514880)/",
+  "ImageUrl": "Employees('1')/$value",
+  "ne_Manager": {
+"__deferred": {
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')/ne_Manager"
+}
+  },
+  "ne_Team": {
+"__metadata": {
+  "id": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Teams('1')",
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Teams('1')",
+  "type": "RefScenario.Team"
+},
+"Id": "1",
+"Name": "Team 1",
+"isScrumTeam": false,
+"nt_Employees": {
+  "__deferred": {
+"uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Teams('1')/nt_Employees"
+  }
+}
+  },
+  "ne_Room": {
+"__deferred": {
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('1')/ne_Room"
+}
+  }
+}
+  ]
+},
+"nr_Building": {
+  "__deferred": {
+"uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Rooms('1')/nr_Building"
+  }
+}
+  }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/9e949e40/odata2-lib/odata-client-core/src/test/resources/JsonRoomsToEmployeesWithInlineTeams.json
--
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/JsonRoomsToEmployeesWithInlineTeams.json
 
b/odata2-lib/odata-client-core/src/test/resources/JsonRoomsToEmployeesWithInlineTeams.json
new file mode 100644
index 000..671dbb6
--- /dev/null
+++ 
b/odata2-lib/odata-client-core/src/test/resources/JsonRoomsToEmployeesWithInlineTeams.json
@@ -0,0 +1,118 @@
+{
+  "d": {
+"results": [
+  {
+"__metadata": {
+  "id": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('2')",
+  "uri": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('2')",
+  "type": "RefScenario.Employee",
+  "content_type": "image/jpeg",
+  "media_src": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('2')/$value",
+  "edit_media": 
"http://localhost:8080/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('2')/$value"
+},
+"EmployeeId": "2",
+"EmployeeName": "Frederic Fall",
+"ManagerId": "1",
+"RoomId": "2",
+"TeamId": "1",
+"Location": {
+  "__metadata": {
+"type": "RefScenario.c_Location"
+  },
+  "City": {
+"__metadata": {
+  "type