Remove demo tests

This commit is contained in:
Alex Mukha
2019-12-04 16:14:41 +00:00
parent 8441627217
commit c0e2b409d2
2 changed files with 0 additions and 49 deletions
@@ -1,24 +0,0 @@
package org.alfresco.rest.aos;
import org.alfresco.rest.RestTest;
import org.alfresco.rest.core.RestRequest;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.testng.annotations.Test;
public class AosApiTest extends RestTest
{
/*
* @author: Catalin Gornea
*
* simple test for demo purposes on how to use Aos with Rest
*/
@Test(enabled=false)
public void assertResponsIsSuccesufulWhenGetRootDirectory() throws Exception
{
restClient.authenticateUser(dataUser.getAdminUser()).withAosAPI();
RestRequest request = RestRequest.simpleRequest(HttpMethod.GET, "");
restClient.process(request);
restClient.assertStatusCodeIs(HttpStatus.OK);
}
}
@@ -1,25 +0,0 @@
package org.alfresco.rest.cmis;
import org.alfresco.dataprep.CMISUtil.DocumentType;
import org.alfresco.rest.RestTest;
import org.alfresco.rest.core.RestResponse;
import org.alfresco.utility.model.FileModel;
import org.testng.annotations.Test;
public class CmisBrowserTest extends RestTest
{
/*
* @author: Paul Brodner
* simple test for demo purposes on how to use CMIS browser binding with Rest
*/
@Test(enabled=false)
public void assertContentDispositionHeaderOnCmisFile() throws Exception
{
FileModel document = dataContent.usingUser(dataUser.getAdminUser())
.usingSite(testSite).createContent(DocumentType.HTML);
RestResponse response = restClient.authenticateUser(dataUser.getAdminUser()).withCMISApi().getRootObjectByID(document);
response.assertThat().header("Content-Disposition", String.format("attachment; filename=%s", document.getName()));
}
}