Skip to content

Commit

Permalink
fix source comprehensive test (#5379)
Browse files Browse the repository at this point in the history
  • Loading branch information
subodh1810 authored Aug 16, 2021
1 parent adb6e84 commit 797445d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,18 @@ protected String getNameSpace() {
return dataset.getDatasetId().getDataset();
}

@Override
protected String getValueFromJsonNode(JsonNode jsonNode) {
if (jsonNode != null) {
String nodeText = jsonNode.asText();
String nodeString = jsonNode.toString();
String value = (nodeText != null && !nodeText.equals("") ? nodeText : nodeString);
value = (value != null && value.equals("null") ? null : value);
return value;
}
return null;
}

@AfterAll
public void cleanTestInstance() {
database.getRealDatabase().cleanDataSet(getNameSpace());
Expand Down

0 comments on commit 797445d

Please sign in to comment.