[fix/MNT-24172-fixRecreationOfRendition2] Test Case for recreation of Rendition2

This commit is contained in:
mohit-singh4
2025-02-12 13:32:12 +05:30
parent b7e1daaac9
commit a1d8aa7b48

View File

@@ -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);