Class 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 dataContent  
      protected org.alfresco.utility.data.DataGroup dataGroup  
      protected org.alfresco.utility.data.DataLink dataLink  
      protected org.alfresco.utility.data.DataSite dataSite  
      protected org.alfresco.utility.data.DataUserAIS dataUser  
      protected org.alfresco.utility.data.DataWorkflow dataWorkflow  
      protected org.alfresco.utility.TasProperties properties  
      protected RestWrapper restClient  
      protected RestProperties restProperties  
      protected org.alfresco.utility.network.ServerHealth serverHealth  
      protected org.alfresco.utility.model.SiteModel testSite  
      protected org.alfresco.dataprep.WorkflowService workflow  
      • Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests

        applicationContext, logger
    • Constructor Summary

      Constructors 
      Constructor Description
      RestTest()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkServerHealth()  
      void showEndTestInfo​(java.lang.reflect.Method method)  
      void showStartTestInfo​(java.lang.reflect.Method method)  
      • 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 Detail

      • 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
      • dataLink

        @Autowired
        protected org.alfresco.utility.data.DataLink dataLink
      • workflow

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

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

      • RestTest

        public RestTest()
    • Method Detail

      • checkServerHealth

        public void checkServerHealth()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • showStartTestInfo

        public void showStartTestInfo​(java.lang.reflect.Method method)
      • showEndTestInfo

        public void showEndTestInfo​(java.lang.reflect.Method method)