Class RestTest

java.lang.Object
org.springframework.test.context.testng.AbstractTestNGSpringContextTests
org.alfresco.rest.RestTest
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.testng.IHookable, org.testng.ITestNGListener
Direct Known Subclasses:
NetworkDataPrep

@ContextConfiguration("classpath:alfresco-restapi-context.xml") public abstract class RestTest extends org.springframework.test.context.testng.AbstractTestNGSpringContextTests
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.alfresco.utility.data.DataContent
     
    protected org.alfresco.utility.data.DataGroup
     
    protected org.alfresco.utility.data.DataLink
     
    protected org.alfresco.utility.data.DataSite
     
    protected org.alfresco.utility.data.DataUserAIS
     
    protected org.alfresco.utility.data.DataWorkflow
     
    protected org.alfresco.utility.TasProperties
     
    protected RestWrapper
     
    protected RestProperties
     
    protected org.alfresco.utility.network.ServerHealth
     
    protected org.alfresco.utility.model.SiteModel
     
    protected org.alfresco.dataprep.WorkflowService
     

    Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests

    applicationContext, logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
     

    Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests

    run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • restProperties

      @Autowired protected RestProperties restProperties
    • properties

      @Autowired protected org.alfresco.utility.TasProperties properties
    • serverHealth

      @Autowired protected org.alfresco.utility.network.ServerHealth serverHealth
    • restClient

      @Autowired protected RestWrapper restClient
    • dataUser

      @Autowired protected org.alfresco.utility.data.DataUserAIS dataUser
    • dataSite

      @Autowired protected org.alfresco.utility.data.DataSite dataSite
    • dataContent

      @Autowired protected org.alfresco.utility.data.DataContent dataContent
    • dataGroup

      @Autowired protected org.alfresco.utility.data.DataGroup dataGroup
    • dataWorkflow

      @Autowired protected org.alfresco.utility.data.DataWorkflow dataWorkflow
    • workflow

      @Autowired protected org.alfresco.dataprep.WorkflowService workflow
    • testSite

      protected org.alfresco.utility.model.SiteModel testSite
  • Constructor Details

    • RestTest

      public RestTest()
  • Method Details

    • checkServerHealth

      @BeforeSuite(alwaysRun=true) public void checkServerHealth()
    • showStartTestInfo

      @BeforeMethod(alwaysRun=true) public void showStartTestInfo(Method method)
    • showEndTestInfo

      @AfterMethod(alwaysRun=true) public void showEndTestInfo(Method method)