issue-60-null-timestamp-handling (#70)

Going to merge since this is a null-check issue. Has passed testing.
This commit is contained in:
Joshua Darnell 2021-04-05 17:13:41 -07:00 committed by GitHub
parent e5549c84d4
commit b59ab5b4ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -656,9 +656,9 @@ class WebAPIServer implements En {
from(getTestContainer().getResponseData()).getList(JSON_VALUE_PATH, HashMap.class).forEach(item -> {
try {
if (count.get() == 0) {
initialValue.set(TestUtils.parseTimestampFromEdmDateTimeOffsetString(item.get(fieldName).toString()));
initialValue.set(TestUtils.parseTimestampFromEdmDateTimeOffsetString((String)item.get(fieldName)));
} else {
currentValue.set(TestUtils.parseTimestampFromEdmDateTimeOffsetString(item.get(fieldName).toString()));
currentValue.set(TestUtils.parseTimestampFromEdmDateTimeOffsetString((String)item.get(fieldName)));
if (orderBy.get().equals(ASC)) {
assertTrue(TestUtils.compare(initialValue.get(), LESS_THAN_OR_EQUAL, currentValue.get()));
} else if (orderBy.get().equals(DESC)) {