review changes

This commit is contained in:
Rodica Sutu
2018-04-25 11:07:14 +03:00
parent 62d4840ae1
commit 0b44e3fd70
2 changed files with 12 additions and 10 deletions

View File

@@ -112,7 +112,9 @@ public class PojoUtility
{
mandatoryObject("model", classz);
mandatoryObject("jsonObject", json);
ObjectMapper mapper = new ObjectMapper();
T obj = null;
try
{
@@ -123,7 +125,7 @@ public class PojoUtility
LOGGER.error("Unable to convert the json into a java object.", e.toString());
}
return (T) obj;
return obj;
}
/**

View File

@@ -59,7 +59,7 @@ public class RMAuditAPI extends BaseAPI
private static final String RM_AUDIT_LOG_API = RM_AUDIT_API + "?{1}";
/**
* Returns a list of audit entries audit of Records Management events. .
* Returns a list of rm audit entries .
*
* @param user The username of the user to use.
* @param password The password of the user.
@@ -72,7 +72,7 @@ public class RMAuditAPI extends BaseAPI
String parameters = null;
try
{
parameters = "size=" + size + (event != null ? "&event=" + URLEncoder.encode(event, "UTF-8"): null );
parameters = "size=" + size + (event != null ? "&event=" + URLEncoder.encode(event, "UTF-8"):"");
}
catch (UnsupportedEncodingException e)
{
@@ -85,7 +85,7 @@ public class RMAuditAPI extends BaseAPI
}
/**
* Clear the list of audit entries audit of Records Management events. .
* Clear the list of audit entries.
*
* @param username The username of the user to use.
* @param password The password of the user.
@@ -96,7 +96,7 @@ public class RMAuditAPI extends BaseAPI
JSONObject deleteStatus = doDeleteRequest(username, password, RM_AUDIT_API);
assertTrue(deleteStatus != null
//audit clear and audit login returned
//audit clear and login events are returned
&& getRMAuditLog(username, password, 100, null).size() == 2);
}