mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
[fix/MNT-24172-fixRecreationOfRendition2] Test Case for recreation of Rendition2
This commit is contained in:
@@ -112,7 +112,7 @@ public class RenditionsTest extends AbstractBaseApiTest
|
|||||||
|
|
||||||
protected static ContentService contentService;
|
protected static ContentService contentService;
|
||||||
private static SynchronousTransformClient synchronousTransformClient;
|
private static SynchronousTransformClient synchronousTransformClient;
|
||||||
private HttpClient httpClient = null;
|
private HttpClient httpClient;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setup() throws Exception
|
public void setup() throws Exception
|
||||||
@@ -1046,15 +1046,15 @@ public class RenditionsTest extends AbstractBaseApiTest
|
|||||||
|
|
||||||
AuthenticationUtil.setFullyAuthenticatedUser(userOneN1.getUserName());
|
AuthenticationUtil.setFullyAuthenticatedUser(userOneN1.getUserName());
|
||||||
|
|
||||||
String URL_DOCUMENT = "/context/mine/document-details";
|
String urlDocument = "/context/mine/document-details";
|
||||||
|
|
||||||
StringBuilder pageParamsBuilder = new StringBuilder();
|
String pageParams = new StringBuilder()
|
||||||
pageParamsBuilder.append("\"nodeRef\" : \"");
|
.append("\"nodeRef\" : \"")
|
||||||
pageParamsBuilder.append(getFolderNodeRef(folderId));
|
.append(getFolderNodeRef(folderId))
|
||||||
pageParamsBuilder.append("\", ");
|
.append("\", ")
|
||||||
String pageParams = pageParamsBuilder.toString();
|
.toString();
|
||||||
|
|
||||||
Response responseDocument = sendRequest(new GetRequest(URL_DOCUMENT + "?" + pageParams), 200);
|
Response responseDocument = sendRequest(new GetRequest(urlDocument + "?" + pageParams), 200);
|
||||||
assertNotNull(responseDocument.getContentLength());
|
assertNotNull(responseDocument.getContentLength());
|
||||||
|
|
||||||
Thread.sleep(DELAY_IN_MS);
|
Thread.sleep(DELAY_IN_MS);
|
||||||
|
Reference in New Issue
Block a user