RM: Fix build

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54679 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-08-30 02:14:22 +00:00
parent 50c8869c40
commit 5f5746400b
2 changed files with 1 additions and 5 deletions

View File

@@ -174,8 +174,7 @@ public class RecordsManagementActionServiceImplTest extends TestCase
// get some specific actions and check the label // get some specific actions and check the label
RecordsManagementAction cutoff = this.rmActionService.getDispositionAction("cutoff"); RecordsManagementAction cutoff = this.rmActionService.getDispositionAction("cutoff");
assertNotNull(cutoff); assertNotNull(cutoff);
assertEquals("Cutoff", cutoff.getLabel()); assertEquals("Cut off", cutoff.getLabel());
assertEquals("Cutoff", cutoff.getDescription());
RecordsManagementAction freeze = this.rmActionService.getRecordsManagementAction("freeze"); RecordsManagementAction freeze = this.rmActionService.getRecordsManagementAction("freeze");
assertNotNull(freeze); assertNotNull(freeze);

View File

@@ -114,7 +114,6 @@ public class DispositionRestApiTest extends BaseRMWebScriptTestCase implements R
assertNotNull(action1.get("url")); assertNotNull(action1.get("url"));
assertEquals(0, action1.getInt("index")); assertEquals(0, action1.getInt("index"));
assertEquals("cutoff", action1.getString("name")); assertEquals("cutoff", action1.getString("name"));
assertEquals("Cutoff", action1.getString("label"));
assertTrue(action1.getBoolean("eligibleOnFirstCompleteEvent")); assertTrue(action1.getBoolean("eligibleOnFirstCompleteEvent"));
JSONObject action2 = (JSONObject)actions.get(1); JSONObject action2 = (JSONObject)actions.get(1);
@@ -250,7 +249,6 @@ public class DispositionRestApiTest extends BaseRMWebScriptTestCase implements R
JSONObject actionDef = json.getJSONObject("data").getJSONArray("actions").getJSONObject(0); JSONObject actionDef = json.getJSONObject("data").getJSONArray("actions").getJSONObject(0);
String actionDefId = actionDef.getString("id"); String actionDefId = actionDef.getString("id");
assertEquals("cutoff", actionDef.getString("name")); assertEquals("cutoff", actionDef.getString("name"));
assertEquals("Cutoff", actionDef.getString("label"));
assertEquals("none|0", actionDef.getString("period")); assertEquals("none|0", actionDef.getString("period"));
assertFalse(actionDef.has("description")); assertFalse(actionDef.has("description"));
assertFalse(actionDef.has("events")); assertFalse(actionDef.has("events"));
@@ -361,7 +359,6 @@ public class DispositionRestApiTest extends BaseRMWebScriptTestCase implements R
JSONObject dataObj = jsonParsedObject.getJSONObject("data"); JSONObject dataObj = jsonParsedObject.getJSONObject("data");
assertEquals(SERVICE_URL_PREFIX + requestUrl, dataObj.getString("url")); assertEquals(SERVICE_URL_PREFIX + requestUrl, dataObj.getString("url"));
assertEquals("cutoff", dataObj.getString("name")); assertEquals("cutoff", dataObj.getString("name"));
assertEquals("Cutoff", dataObj.getString("label"));
assertFalse(dataObj.getBoolean("eventsEligible")); assertFalse(dataObj.getBoolean("eventsEligible"));
assertTrue(dataObj.has("events")); assertTrue(dataObj.has("events"));
JSONArray events = dataObj.getJSONArray("events"); JSONArray events = dataObj.getJSONArray("events");