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

This commit is contained in:
ehardon
2020-12-03 17:49:52 +02:00
parent d452b25868
commit a87b00c015

View File

@@ -238,7 +238,7 @@ public final class WebScriptUtils
try
{
value = jsonObject.get(key).toString();
value = jsonObject.getString(key);
if (checkValue && isBlank(value))
{
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);
mandatoryString("key", key);
JSONObject value = null;
JSONObject value;
try
{