mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
Updates to REST API framework - javadocs, updates to API calls
This commit is contained in:
38
e2e-test/java/org/alfresco/rest/RestTest.java
Normal file
38
e2e-test/java/org/alfresco/rest/RestTest.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package org.alfresco.rest;
|
||||
|
||||
import org.alfresco.rest.core.RestProperties;
|
||||
import org.alfresco.rest.core.RestWrapper;
|
||||
import org.alfresco.utility.ServerHealth;
|
||||
import org.alfresco.utility.TasProperties;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
import com.jayway.restassured.RestAssured;
|
||||
|
||||
@ContextConfiguration("classpath:alfresco-restapi-context.xml")
|
||||
public abstract class RestTest extends AbstractTestNGSpringContextTests
|
||||
{
|
||||
@Autowired
|
||||
protected RestProperties restProperties;
|
||||
|
||||
@Autowired
|
||||
protected TasProperties properties;
|
||||
|
||||
@Autowired
|
||||
protected ServerHealth serverHealth;
|
||||
|
||||
@Autowired
|
||||
protected RestWrapper restClient;
|
||||
|
||||
@BeforeClass(alwaysRun = true)
|
||||
public void setupRestTest() throws Exception
|
||||
{
|
||||
serverHealth.assertServerIsOnline();
|
||||
|
||||
RestAssured.baseURI = restProperties.envProperty().getTestServerUrl();
|
||||
RestAssured.port = restProperties.envProperty().getPort();
|
||||
RestAssured.basePath = restProperties.getRestBasePath();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user