Class TestModel

java.lang.Object
org.alfresco.utility.model.TestModel
All Implemented Interfaces:
Model
Direct Known Subclasses:
CalendarEventModel, CustomAspectModel, CustomAspectPropertiesModel, CustomContentModel, GroupModel, LinkModel, ProcessModel, RepoTestModel, SiteModel, StatusModel, TagModel, TaskModel, UserModel, WikiModel

public abstract class TestModel extends Object implements Model
  • Constructor Details

    • TestModel

      public TestModel()
  • Method Details

    • toInfo

      public String toInfo()
      Specified by:
      toInfo in interface Model
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public String toJson()
      Converting object to JSON string
      Parameters:
      model - The java object model to convert
    • setRandomValuesForAllFields

      protected static void setRandomValuesForAllFields(TestModel testModel, String... ignoredFields)
      Sets random values for all fields of a TestModel without specified fields as ignoredFields
      Parameters:
      testModel - all fields of testModel that need to be set
      ignoredFields - fields to be excluded
      Throws:
      DataPreparationException - if there is an issue setting the fields.