mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2026-09-16 18:13:21 +00:00
Remove demo tests
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user