Class TestMdObjectFactory


  • public class TestMdObjectFactory
    extends Object
    Creates mdObjects and fills in valid information
    • Constructor Detail

      • TestMdObjectFactory

        public TestMdObjectFactory()
    • Method Detail

      • setNameSynonymComment

        public static void setNameSynonymComment​(MdObject object,
                                                 String name)
        Set object values: name, synonym and comment
        Parameters:
        object -
        name - object's name
      • setFormInfo

        public static BasicForm setFormInfo​(BasicForm form,
                                            String name)
        Set comman form info
        Parameters:
        form -
        name - form's name
        Returns:
        BasicForm filled in with name and Uuid
      • createSubsystem

        public static Subsystem createSubsystem​(String name)
        Creates Subsystem with name
        Parameters:
        name - object name
        Returns:
        Subsystem filled in with valid data
      • createSettingsStorage

        public static SettingsStorage createSettingsStorage​(String name)
        Creates SettingsStorage with name
        Parameters:
        name - object name
        Returns:
        SettingsStorage filled in with valid data
      • createReport

        public static Report createReport​(String name)
        Creates Report with name
        Parameters:
        name - object name
        Returns:
        Report filled in with valid data
      • createInformationRegister

        public static InformationRegister createInformationRegister​(String name)
        Creates InformationRegister with name
        Parameters:
        name - object name
        Returns:
        InformationRegister filled in with valid data
      • createRole

        public static Role createRole​(String name)
        Creates Role with name
        Parameters:
        name - object name
        Returns:
        Role filled in with valid data
      • createLanguage

        public static Language createLanguage​(String name)
        Creates Language with name
        Parameters:
        name - object name
        Returns:
        Language filled in with valid data
      • createStyleItem

        public static StyleItem createStyleItem​(String name)
        Creates StyleItem with name
        Parameters:
        name - object name
        Returns:
        StyleItem filled in with valid data
      • createStyle

        public static Style createStyle​(String name)
        Creates Style with name
        Parameters:
        name - object name
        Returns:
        Style filled in with valid data
      • createSessionParameter

        public static SessionParameter createSessionParameter​(String name,
                                                              TypeDescription type)
        Creates SessionParameter with name and TypeDescription
        Parameters:
        name - object name
        type - TypeDescription value
        Returns:
        SessionParameter filled in with valid data
      • createCommonTemplate

        public static CommonTemplate createCommonTemplate​(String name,
                                                          TemplateType type)
        Creates CommonTemplate with name and TemplateType
        Parameters:
        name - object name
        type - TemplateType value
        Returns:
        CommonTemplate filled in with valid data
      • createCommonForm

        public static CommonForm createCommonForm​(String name,
                                                  FormType type)
        Creates CommonForm with name and FormType
        Parameters:
        name - object name
        type - FormType value
        Returns:
        CommonForm filled in with valid data
      • createCommonPicture

        public static CommonPicture createCommonPicture​(String name)
        Creates CommonPicture with name
        Parameters:
        name - object name
        Returns:
        CommonPicture filled in with valid data
      • createDocumentNumerator

        public static DocumentNumerator createDocumentNumerator​(String name)
        Creates DocumentNumerator with name
        Parameters:
        name - object name
        Returns:
        DocumentNumerator filled in with valid data
      • createCommonAttribute

        public static CommonAttribute createCommonAttribute​(String name)
        Creates CommonAttribute with name
        Parameters:
        name - object name
        Returns:
        CommonAttribute filled in with valid data
      • createConstant

        public static Constant createConstant​(String name)
        Creates Constant with name
        Parameters:
        name - object name
        Returns:
        Constant filled in with valid data
      • createDataProcessor

        public static DataProcessor createDataProcessor​(String name)
        Creates DataProcessor with name
        Parameters:
        name - object name
        Returns:
        DataProcessor filled in with valid data
      • createChartOfCharacteristicTypes

        public static ChartOfCharacteristicTypes createChartOfCharacteristicTypes​(String name)
        Creates ChartOfCharacteristicTypes with name
        Parameters:
        name - object name
        Returns:
        ChartOfCharacteristicTypes filled in with valid data
      • createDocument

        public static Document createDocument​(String name)
        Creates Document with name
        Parameters:
        name - object name
        Returns:
        Document filled in with valid data
      • createAccountingRegister

        public static AccountingRegister createAccountingRegister​(String name)
        Creates AccountingRegister with name
        Parameters:
        name - object name
        Returns:
        AccountingRegister filled in with valid data
      • createAccumulationRegister

        public static AccumulationRegister createAccumulationRegister​(String name)
        Creates AccumulationRegister with name
        Parameters:
        name - object name
        Returns:
        AccumulationRegister filled in with valid data
      • createConfiguration

        public static Configuration createConfiguration​(String name)
        Creates Configuration with name
        Parameters:
        name - object name
        Returns:
        Configuration filled in with valid data
      • createBusinessProcess

        public static BusinessProcess createBusinessProcess​(String name)
        Creates BusinessProcess with name
        Parameters:
        name - object name
        Returns:
        BusinessProcess filled in with valid data
      • createCalculationRegister

        public static CalculationRegister createCalculationRegister​(String name)
        Creates CalculationRegister with name
        Parameters:
        name - object name
        Returns:
        CalculationRegister filled in with valid data
      • createChartOfAccounts

        public static ChartOfAccounts createChartOfAccounts​(String name)
        Creates ChartOfAccounts with name
        Parameters:
        name - object name
        Returns:
        ChartOfAccounts filled in with valid data
      • createChartOfCalculationTypes

        public static ChartOfCalculationTypes createChartOfCalculationTypes​(String name)
        Creates ChartOfCalculationTypes with name
        Parameters:
        name - object name
        Returns:
        ChartOfCalculationTypes filled in with valid data
      • createExchangePlan

        public static ExchangePlan createExchangePlan​(String name)
        Creates ExchangePlan with name
        Parameters:
        name - object name
        Returns:
        ExchangePlan filled in with valid data
      • createFilterCriterion

        public static FilterCriterion createFilterCriterion​(String name)
        Creates FilterCriterion with name
        Parameters:
        name - object name
        Returns:
        FilterCriterion filled in with valid data
      • createDefinedType

        public static DefinedType createDefinedType​(String name)
        Creates DefinedType with name
        Parameters:
        name - object name
        Returns:
        DefinedType filled in with valid data
      • createDocumentJournal

        public static DocumentJournal createDocumentJournal​(String name)
        Creates DocumentJournal with name
        Parameters:
        name - object name
        Returns:
        DocumentJournal filled in with valid data
      • createEnum

        public static Enum createEnum​(String name)
        Creates Enum with name
        Parameters:
        name - object name
        Returns:
        Enum filled in with valid data
      • createEventSubscription

        public static EventSubscription createEventSubscription​(String name)
        Creates EventSubscription with name
        Parameters:
        name - object name
        Returns:
        EventSubscription filled in with valid data
      • createFunctionalOption

        public static FunctionalOption createFunctionalOption​(String name)
        Creates FunctionalOption with name
        Parameters:
        name - object name
        Returns:
        FunctionalOption filled in with valid data
      • createFunctionalOptionsParameter

        public static FunctionalOptionsParameter createFunctionalOptionsParameter​(String name)
        Creates FunctionalOptionsParameter with name
        Parameters:
        name - object name
        Returns:
        FunctionalOptionsParameter filled in with valid data
      • createScheduledJob

        public static ScheduledJob createScheduledJob​(String name)
        Creates ScheduledJob with name
        Parameters:
        name - object name
        Returns:
        ScheduledJob filled in with valid data
      • createXDTOPackage

        public static XDTOPackage createXDTOPackage​(String name)
        Creates XDTOPackage with name
        Parameters:
        name - object name
        Returns:
        XDTOPackage filled in with valid data
      • createWSReference

        public static WSReference createWSReference​(String name)
        Creates WSReference with name
        Parameters:
        name - object name
        Returns:
        WSReference filled in with valid data
      • createWebService

        public static WebService createWebService​(String name)
        Creates WebService with name
        Parameters:
        name - object name
        Returns:
        WebService filled in with valid data
      • createHTTPService

        public static HTTPService createHTTPService​(String name)
        Creates HTTPService with name
        Parameters:
        name - object name
        Returns:
        HTTPService filled in with valid data
      • createTask

        public static Task createTask​(String name)
        Creates Task with name
        Parameters:
        name - object name
        Returns:
        Task filled in with valid data
      • createCatalog

        public static Catalog createCatalog​(String name)
        Creates Catalog with name
        Parameters:
        name - object name
        Returns:
        Catalog filled in with valid data
      • createCommonModule

        public static CommonModule createCommonModule​(String name)
        Creates CommonModule with name
        Parameters:
        name - object name
        Returns:
        CommonModule filled in with valid data
      • createCommandGroup

        public static CommandGroup createCommandGroup​(String name)
        Creates CommandGroup with name
        Parameters:
        name - object name
        Returns:
        CommandGroup filled in with valid data
      • createCommonCommand

        public static CommonCommand createCommonCommand​(String name)
        Creates CommonCommand with name
        Parameters:
        name - object name
        Returns:
        CommonCommand filled in with valid data
      • createExternalDataSource

        public static ExternalDataSource createExternalDataSource​(String name)
        Creates ExternalDataSource with name
        Parameters:
        name - object name
        Returns:
        ExternalDataSource filled in with valid data
      • createDimensionTable

        public static DimensionTable createDimensionTable​(String name)
        Creates DimensionTable with name
        Parameters:
        name - object name
        Returns:
        DimensionTable filled in with valid data
      • createFunction

        public static Function createFunction​(String name)
        Creates Function with name
        Parameters:
        name - object name
        Returns:
        Function filled in with valid data
      • createTable

        public static Table createTable​(String name)
        Creates Table with name
        Parameters:
        name - object name
        Returns:
        Table filled in with valid data
      • createCube

        public static Cube createCube​(String name)
        Creates Cube with name
        Parameters:
        name - object name
        Returns:
        Cube filled in with valid data
      • createDimension

        public static Dimension createDimension​(String name)
        Creates Dimension with name
        Returns:
        Dimension filled in with valid data
      • createCubeDbViewDefs

        public static CubeDbViewDefs createCubeDbViewDefs()
        Creates CubeDbViewDefs with name
        Returns:
        CubeDbViewDefs filled in with valid data
      • createModule

        public static Module createModule()
        Creates Module with name
        Returns:
        Module filled in with valid data
      • createField

        public static Field createField​(String name)
        Creates Field with name
        Returns:
        Field filled in with valid data
      • createChoiceParameterLink

        public static ChoiceParameterLink createChoiceParameterLink()
        Creates ChoiceParameterLink with name
        Returns:
        ChoiceParameterLink filled in with valid data
      • createChoiceParameter

        public static ChoiceParameter createChoiceParameter()
        Creates ChoiceParameter with name
        Returns:
        ChoiceParameter filled in with valid data
      • createDbViewTableDef

        public static DbViewTableDef createDbViewTableDef()
        Creates DbViewTableDef with name
        Returns:
        DbViewTableDef filled in with valid data
      • createDbObjectDef

        public static DbObjectDef createDbObjectDef()
        Creates DbObjectDef with name
        Returns:
        DbObjectDef filled in with valid data
      • createDbNonObjectDef

        public static DbNonObjectDef createDbNonObjectDef()
        Creates DbNonObjectDef with name
        Returns:
        DbNonObjectDef filled in with valid data
      • createDbViewFieldDef

        public static DbViewFieldDef createDbViewFieldDef()
        Creates DbViewFieldDef with name
        Returns:
        DbViewFieldDef filled in with valid data
      • createDbViewFieldRole

        public static DbViewFieldRole createDbViewFieldRole()
        Creates DbViewFieldRole with name
        Returns:
        DbViewFieldRole filled in with valid data
      • createTypeDescriptionAllType

        public static TypeDescription createTypeDescriptionAllType()
        Creates TypeDescription with name
        Returns:
        TypeDescription filled in with valid data
      • createTypeDescriptionBinaryQualifier

        public static TypeDescription createTypeDescriptionBinaryQualifier()
        Creates BinaryQualifier TypeDescription
        Returns:
        TypeDescription filled in with BinaryQualifier
      • createTypeDescriptionDateQualifier

        public static TypeDescription createTypeDescriptionDateQualifier()
        Creates DateQualifier TypeDescription
        Returns:
        TypeDescription filled in with DateQualifier
      • createTypeDescriptionNumberQualifier

        public static TypeDescription createTypeDescriptionNumberQualifier()
        Creates NumberQualifier TypeDescription
        Returns:
        TypeDescription filled in with NumberQualifier
      • createTypeDescriptionStringQualifier

        public static TypeDescription createTypeDescriptionStringQualifier()
        Creates StringQualifier TypeDescription
        Returns:
        TypeDescription filled in with StringQualifier
      • createTypeDescriptionTypeItem

        public static TypeDescription createTypeDescriptionTypeItem​(String value)
        Creates TypeItem TypeDescription
        Parameters:
        value - TypeItem value
        Returns:
        TypeDescription filled in with TypeItem
      • createNumberValue

        public static NumberValue createNumberValue()
        Creates NumberValue
        Returns:
        NumberValue filled in with Integer.MIN_VALUE