mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
small fixes
This commit is contained in:
@@ -138,8 +138,7 @@ public class AuditAddToHoldTests extends BaseRMRestTest
|
|||||||
recordFolderToBeAdded.getName()));
|
recordFolderToBeAdded.getName()));
|
||||||
String recordPath = removeLastSlash(buildPath(documentLibrary, recordCategory.getName(),
|
String recordPath = removeLastSlash(buildPath(documentLibrary, recordCategory.getName(),
|
||||||
recordFolder.getName(), recordToBeAdded.getName()));
|
recordFolder.getName(), recordToBeAdded.getName()));
|
||||||
String contentPath = contentToBeAdded.getCmisLocation();
|
String contentPath = "/Company Home" + contentToBeAdded.getCmisLocation();
|
||||||
contentPath = contentPath.substring(contentPath.indexOf(documentLibrary));
|
|
||||||
|
|
||||||
return new String[][]
|
return new String[][]
|
||||||
{
|
{
|
||||||
@@ -262,10 +261,10 @@ public class AuditAddToHoldTests extends BaseRMRestTest
|
|||||||
assertEquals("The list of events should contain Add to Hold entries for both holds", 2, auditEntries.size());
|
assertEquals("The list of events should contain Add to Hold entries for both holds", 2, auditEntries.size());
|
||||||
assertTrue("The hold name value for the first add to hold is not audited.",
|
assertTrue("The hold name value for the first add to hold is not audited.",
|
||||||
auditEntries.stream().anyMatch(entry -> entry.getChangedValues().contains(
|
auditEntries.stream().anyMatch(entry -> entry.getChangedValues().contains(
|
||||||
Collections.singletonList(ImmutableMap.of("new", HOLD1, "previous", "", "name", "Hold Name")))));
|
ImmutableMap.of("new", HOLD1, "previous", "", "name", "Hold Name"))));
|
||||||
assertTrue("The hold name value for the second add to hold is not audited.",
|
assertTrue("The hold name value for the second add to hold is not audited.",
|
||||||
auditEntries.stream().anyMatch(entry -> entry.getChangedValues().contains(
|
auditEntries.stream().anyMatch(entry -> entry.getChangedValues().contains(
|
||||||
Collections.singletonList(ImmutableMap.of("new", HOLD2, "previous", "", "name", "Hold Name")))));
|
ImmutableMap.of("new", HOLD2, "previous", "", "name", "Hold Name"))));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -149,8 +149,8 @@ public class AuditRemoveFromHoldTests extends BaseRMRestTest
|
|||||||
heldRecordFolder.getName()));
|
heldRecordFolder.getName()));
|
||||||
String recordPath = removeLastSlash(buildPath(documentLibrary, recordCategory.getName(),
|
String recordPath = removeLastSlash(buildPath(documentLibrary, recordCategory.getName(),
|
||||||
recordFolder.getName(), heldRecord.getName()));
|
recordFolder.getName(), heldRecord.getName()));
|
||||||
String contentPath = heldContent.getCmisLocation();
|
String contentPath = "/Company Home" + heldContent.getCmisLocation();
|
||||||
contentPath = contentPath.substring(contentPath.indexOf(documentLibrary));
|
|
||||||
return new String[][]
|
return new String[][]
|
||||||
{
|
{
|
||||||
// a record folder
|
// a record folder
|
||||||
@@ -295,10 +295,10 @@ public class AuditRemoveFromHoldTests extends BaseRMRestTest
|
|||||||
auditEntries.size());
|
auditEntries.size());
|
||||||
assertTrue("The hold name value for the first remove from hold is not audited.",
|
assertTrue("The hold name value for the first remove from hold is not audited.",
|
||||||
auditEntries.stream().anyMatch(entry -> entry.getChangedValues().contains(
|
auditEntries.stream().anyMatch(entry -> entry.getChangedValues().contains(
|
||||||
Collections.singletonList(ImmutableMap.of("new", "", "previous", HOLD1, "name", "Hold Name")))));
|
ImmutableMap.of("new", "", "previous", HOLD1, "name", "Hold Name"))));
|
||||||
assertTrue("The hold name value for the second remove from hold is not audited.",
|
assertTrue("The hold name value for the second remove from hold is not audited.",
|
||||||
auditEntries.stream().anyMatch(entry -> entry.getChangedValues().contains(
|
auditEntries.stream().anyMatch(entry -> entry.getChangedValues().contains(
|
||||||
Collections.singletonList(ImmutableMap.of("new", "", "previous", HOLD2, "name", "Hold Name")))));
|
ImmutableMap.of("new", "", "previous", HOLD2, "name", "Hold Name"))));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user