mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-22 15:11:35 +00:00
update simple test
This commit is contained in:
@@ -8,15 +8,17 @@ import org.testng.annotations.BeforeClass;
|
||||
import com.jayway.restassured.RestAssured;
|
||||
|
||||
@ContextConfiguration("classpath:alfresco-restapi-context.xml")
|
||||
public class BaseRestTest extends AbstractTestNGSpringContextTests {
|
||||
public class BaseRestTest extends AbstractTestNGSpringContextTests
|
||||
{
|
||||
|
||||
@Autowired
|
||||
protected RestProperties restProperties;
|
||||
@Autowired
|
||||
protected RestProperties restProperties;
|
||||
|
||||
@BeforeClass
|
||||
public void setup() {
|
||||
RestAssured.baseURI = restProperties.envProperty().getTestServerUrl();
|
||||
RestAssured.port = restProperties.envProperty().getPort();
|
||||
RestAssured.basePath = restProperties.getRestBasePath();
|
||||
}
|
||||
@BeforeClass
|
||||
public void setup()
|
||||
{
|
||||
RestAssured.baseURI = restProperties.envProperty().getTestServerUrl();
|
||||
RestAssured.port = restProperties.envProperty().getPort();
|
||||
RestAssured.basePath = restProperties.getRestBasePath();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user