no message

This commit is contained in:
Paul Brodner
2016-08-03 10:08:36 +03:00
parent 23b913eb06
commit 2ba01df148
5 changed files with 63 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
package org.alfresco.rest;
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 class BaseRestTest extends AbstractTestNGSpringContextTests {
@Autowired
protected RestProperties restProperties;
@BeforeClass
public void setup() {
RestAssured.baseURI = restProperties.envProperty().getTestServerUrl();
RestAssured.port = restProperties.envProperty().getPort();
RestAssured.basePath = restProperties.getRestBasePath();
}
}