mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge branch 'release/V3.0' of https://git.alfresco.com/records-management/records-management into feature-3-0/RM-6577_AutomatedRestApiTests
This commit is contained in:
@@ -675,6 +675,8 @@ public class BaseRMRestTest extends RestTest
|
||||
this.wait(waitInMilliSeconds);
|
||||
} catch (InterruptedException e)
|
||||
{
|
||||
// Restore interrupted state...
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -726,6 +728,8 @@ public class BaseRMRestTest extends RestTest
|
||||
}
|
||||
catch (InterruptedException e)
|
||||
{
|
||||
// Restore interrupted state...
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -775,6 +779,8 @@ public class BaseRMRestTest extends RestTest
|
||||
}
|
||||
catch (InterruptedException e)
|
||||
{
|
||||
// Restore interrupted state...
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
result = searchApi.searchForNodePropertyAsUser(user.getUsername(), user.getPassword(), nodeRef,
|
||||
|
@@ -156,8 +156,8 @@ public class DeclareDocumentAsRecordTests extends BaseRMRestTest
|
||||
try
|
||||
(
|
||||
InputStream recordInputStream = getRestAPIFactory().getRecordsAPI().getRecordContent(record.getId()).asInputStream();
|
||||
InputStream documentInputStream = documentPostFiling.getContentStream().getStream();
|
||||
)
|
||||
InputStream documentInputStream = documentPostFiling.getContentStream().getStream()
|
||||
)
|
||||
{
|
||||
assertEquals(DigestUtils.sha1(recordInputStream), DigestUtils.sha1(documentInputStream));
|
||||
}
|
||||
|
@@ -775,7 +775,6 @@ public class RecordCategoryTests extends BaseRMRestTest
|
||||
{
|
||||
//is unfiled container
|
||||
containerId = getRestAPIFactory().getUnfiledContainersAPI().getUnfiledContainer(containerAlias).getId();
|
||||
;
|
||||
}
|
||||
|
||||
// Create a record folder
|
||||
|
@@ -269,7 +269,7 @@ public class ReadRecordTests extends BaseRMRestTest
|
||||
try
|
||||
(
|
||||
InputStream recordContentStream = recordsAPI.getRecordContent(binaryRecordId).asInputStream();
|
||||
FileInputStream localFileStream = new FileInputStream(getFile(IMAGE_FILE));
|
||||
FileInputStream localFileStream = new FileInputStream(getFile(IMAGE_FILE))
|
||||
)
|
||||
{
|
||||
assertEquals(DigestUtils.sha1(recordContentStream), DigestUtils.sha1(localFileStream));
|
||||
|
Reference in New Issue
Block a user