mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-15 15:01:29 +00:00
upgrade to TasProperties
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package org.alfresco.rest;
|
||||
|
||||
import org.alfresco.tester.ServerHealth;
|
||||
import org.alfresco.tester.TasProperties;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
|
||||
@@ -13,9 +15,17 @@ public class BaseRestTest extends AbstractTestNGSpringContextTests
|
||||
@Autowired
|
||||
protected RestProperties restProperties;
|
||||
|
||||
@Autowired
|
||||
protected TasProperties properties;
|
||||
|
||||
@Autowired
|
||||
protected ServerHealth serverHealth;
|
||||
|
||||
@BeforeClass
|
||||
public void setup()
|
||||
public void setup() throws Exception
|
||||
{
|
||||
serverHealth.assertIfServerOnline();
|
||||
|
||||
RestAssured.baseURI = restProperties.envProperty().getTestServerUrl();
|
||||
RestAssured.port = restProperties.envProperty().getPort();
|
||||
RestAssured.basePath = restProperties.getRestBasePath();
|
||||
|
Reference in New Issue
Block a user