issue-60-null-timestamp-handling (#70)
Going to merge since this is a null-check issue. Has passed testing.
This commit is contained in:
parent
e5549c84d4
commit
b59ab5b4ec
|
@ -656,9 +656,9 @@ class WebAPIServer implements En {
|
||||||
from(getTestContainer().getResponseData()).getList(JSON_VALUE_PATH, HashMap.class).forEach(item -> {
|
from(getTestContainer().getResponseData()).getList(JSON_VALUE_PATH, HashMap.class).forEach(item -> {
|
||||||
try {
|
try {
|
||||||
if (count.get() == 0) {
|
if (count.get() == 0) {
|
||||||
initialValue.set(TestUtils.parseTimestampFromEdmDateTimeOffsetString(item.get(fieldName).toString()));
|
initialValue.set(TestUtils.parseTimestampFromEdmDateTimeOffsetString((String)item.get(fieldName)));
|
||||||
} else {
|
} else {
|
||||||
currentValue.set(TestUtils.parseTimestampFromEdmDateTimeOffsetString(item.get(fieldName).toString()));
|
currentValue.set(TestUtils.parseTimestampFromEdmDateTimeOffsetString((String)item.get(fieldName)));
|
||||||
if (orderBy.get().equals(ASC)) {
|
if (orderBy.get().equals(ASC)) {
|
||||||
assertTrue(TestUtils.compare(initialValue.get(), LESS_THAN_OR_EQUAL, currentValue.get()));
|
assertTrue(TestUtils.compare(initialValue.get(), LESS_THAN_OR_EQUAL, currentValue.get()));
|
||||||
} else if (orderBy.get().equals(DESC)) {
|
} else if (orderBy.get().equals(DESC)) {
|
||||||
|
|
Loading…
Reference in New Issue