Class XMLTestDataProvider

java.lang.Object
org.alfresco.utility.data.provider.XMLTestDataProvider

public class XMLTestDataProvider extends Object
Provides test data providers based on XML input file This class is working in correlation with XMLDataConfig annotation
Author:
Paul Brodner
  • Constructor Details

    • XMLTestDataProvider

      public XMLTestDataProvider()
  • Method Details

    • getSitesData

      @DataProvider public static Iterator<Object[]> getSitesData(Method m) throws Exception
      Get all Folder Models from the input xml "*.xml" used as input data in tests
      Returns:
      iterator over the list of List sites data
      Throws:
      Exception
    • getUsersData

      @DataProvider public static Iterator<Object[]> getUsersData(Method m) throws Exception
      Throws:
      Exception
    • getQueriesData

      @DataProvider public static Iterator<Object[]> getQueriesData(Method m) throws Exception
      Get all Queries from the input xml "*.xml" used as input data in tests
      Returns:
      iterator over the list of folder model objects
      Throws:
      Exception
    • getAllData

      @DataProvider public static Object[][] getAllData(Method m) throws Exception
      Return the data for your environment Calling XMLTestData#create() will generate via CMIS entire structure in alfresco
      Returns:
      XMLTestData
      Throws:
      Exception