Skip to content

Commit

Permalink
LPS-115820 Simplify, no need to be so fancy - Hugo SF, always call to…
Browse files Browse the repository at this point in the history
…String instead of toJSONString (impl is the same thing)
  • Loading branch information
brianchandotcom committed Jul 2, 2020
1 parent 2dd0514 commit 77c36d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Expand Up @@ -70,7 +70,7 @@ public void testProcessDDMFormInstanceReportOnDeleteEvent()
value.getDefaultLocale(),
JSONUtil.put(
"option1"
).toJSONString());
).toString());
value.setDefaultLocale(LocaleUtil.US);

when(
Expand Down Expand Up @@ -120,7 +120,7 @@ public void testProcessDDMFormInstanceReportWithEmptyData()
value.getDefaultLocale(),
JSONUtil.put(
"option1"
).toJSONString());
).toString());
value.setDefaultLocale(LocaleUtil.US);

when(
Expand Down Expand Up @@ -173,7 +173,7 @@ public void testProcessDDMFormInstanceReportWithExistingData()
value.getDefaultLocale(),
JSONUtil.putAll(
"option1", "option2"
).toJSONString());
).toString());
value.setDefaultLocale(LocaleUtil.US);

when(
Expand Down
Expand Up @@ -200,12 +200,12 @@ private void _assertStructure(JSONObject structureJSONObject) {
"columns");

Assert.assertEquals(
expectedJSONArray.toJSONString(), columnsJSONArray.toJSONString());
expectedJSONArray.toString(), columnsJSONArray.toString());

JSONArray rowsJSONArray = structureJSONObject.getJSONArray("rows");

Assert.assertEquals(
expectedJSONArray.toJSONString(), rowsJSONArray.toJSONString());
expectedJSONArray.toString(), rowsJSONArray.toString());
}

private DDMFormFieldOptions _createDDMFormOptions() {
Expand Down Expand Up @@ -236,8 +236,7 @@ private DDMFormFieldValue _mockDDMFormFieldValue(

Value value = new LocalizedValue();

value.addString(
value.getDefaultLocale(), valueJSONObject.toJSONString());
value.addString(value.getDefaultLocale(), valueJSONObject.toString());
value.setDefaultLocale(LocaleUtil.US);

when(
Expand Down

0 comments on commit 77c36d2

Please sign in to comment.