Revert "APPS-581: Fix Classification UnitTests that were failing due to org.json library version upgrade"

This reverts commit a87b00c015.
This commit is contained in:
rodicasutu
2020-12-03 21:45:49 +02:00
parent 7415057be7
commit 0044284403

View File

@@ -238,7 +238,7 @@ public final class WebScriptUtils
try try
{ {
value = jsonObject.getString(key); value = jsonObject.get(key).toString();
if (checkValue && isBlank(value)) if (checkValue && isBlank(value))
{ {
throw new WebScriptException(Status.STATUS_BAD_REQUEST, "The value is missing for the key '" + key + "'."); throw new WebScriptException(Status.STATUS_BAD_REQUEST, "The value is missing for the key '" + key + "'.");
@@ -413,7 +413,7 @@ public final class WebScriptUtils
mandatory("jsonObject", jsonObject); mandatory("jsonObject", jsonObject);
mandatoryString("key", key); mandatoryString("key", key);
JSONObject value; JSONObject value = null;
try try
{ {