Repository: olingo-odata4
Updated Branches:
refs/heads/master 66ea810b0 -> ce076387c
[OLINGO-1132]Type information is lost when primitive properties with null value
is updated
Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/ce076387
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/ce076387
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/ce076387
Branch: refs/heads/master
Commit: ce076387c38b14a35b9824cc26a3e0e806c7e6ae
Parents: 66ea810
Author: ramya vasanth
Authored: Thu Jun 8 17:40:55 2017 +0530
Committer: ramya vasanth
Committed: Thu Jun 8 17:40:55 2017 +0530
--
.../fit/tecsvc/client/AsyncSupportITCase.java | 2 +-
.../olingo/fit/tecsvc/client/BasicITCase.java | 8 +-
.../client/core/domain/ClientValuableImpl.java | 2 +-
.../apache/olingo/client/core/EntityTest.java | 20
.../apache/olingo/client/core/ESTwoKeyNav.json | 105 +++
5 files changed, 131 insertions(+), 6 deletions(-)
--
http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/ce076387/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/AsyncSupportITCase.java
--
diff --git
a/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/AsyncSupportITCase.java
b/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/AsyncSupportITCase.java
index 68098e6..2263e9b 100644
---
a/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/AsyncSupportITCase.java
+++
b/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/AsyncSupportITCase.java
@@ -211,7 +211,7 @@ public final class AsyncSupportITCase extends
AbstractParamTecSvcITCase {
assertShortOrInt(42, property1.getPrimitiveValue().toValue());
final ClientProperty property2 =
createdEntity.getProperty("PropertyDecimal");
assertNotNull(property2);
-assertNull(property2.getPrimitiveValue());
+assertNull(property2.getPrimitiveValue().toValue());
}
@Test
http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/ce076387/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/BasicITCase.java
--
diff --git
a/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/BasicITCase.java
b/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/BasicITCase.java
index 3d33ee9..c07a6cf 100644
--- a/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/BasicITCase.java
+++ b/fit/src/test/java/org/apache/olingo/fit/tecsvc/client/BasicITCase.java
@@ -412,7 +412,7 @@ public class BasicITCase extends AbstractParamTecSvcITCase {
property2.getPrimitiveValue().toValue());
final ClientProperty property3 = entity.getProperty(PROPERTY_INT64);
assertNotNull(property3);
-assertNull(property3.getPrimitiveValue());
+assertNull(property3.getPrimitiveValue().toValue());
final ClientProperty property4 = entity.getProperty("PropertyDuration");
assertNotNull(property4);
assertEquals(isJson() ? "PT6S" : BigDecimal.valueOf(6),
property4.getPrimitiveValue().toValue());
@@ -439,7 +439,7 @@ public class BasicITCase extends AbstractParamTecSvcITCase {
assertShortOrInt(42, property1.getPrimitiveValue().toValue());
final ClientProperty property2 = entity.getProperty(PROPERTY_DECIMAL);
assertNotNull(property2);
-assertNull(property2.getPrimitiveValue());
+assertNull(property2.getPrimitiveValue().toValue());
}
@Test
@@ -504,7 +504,7 @@ public class BasicITCase extends AbstractParamTecSvcITCase {
assertNotNull(complex);
final ClientProperty property = complex.get(PROPERTY_INT16);
assertNotNull(property);
-assertNull(property.getPrimitiveValue());
+assertNull(property.getPrimitiveValue().toValue());
}
@Test
@@ -534,7 +534,7 @@ public class BasicITCase extends AbstractParamTecSvcITCase {
assertShortOrInt(42, property1.getPrimitiveValue().toValue());
final ClientProperty property2 =
createdEntity.getProperty(PROPERTY_DECIMAL);
assertNotNull(property2);
-assertNull(property2.getPrimitiveValue());
+assertNull(property2.getPrimitiveValue().toValue());
}
@Test
http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/ce076387/lib/client-core/src/main/java/org/apache/olingo/client/core/domain/ClientValuableImpl.java
--
diff --git
a/lib/client-core/src/main/java/org/apache/olingo/client/core/domain/ClientValuableImpl.java
b/lib/client-core/src/main/java/org/apache/olingo/client/core/domain/ClientValuableImpl.java
index 4b94be6..d2f1a3a 100644
---
a/lib/client-core/src/main/java/org/apache/olingo/client/core/domain/ClientValuableImpl.java
+++
b/lib/client-core/src/main/java/org/apache/ol