public abstract class TestModel extends Object implements Model
| Constructor and Description |
|---|
TestModel() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
setRandomValuesForAllFields(TestModel testModel,
String... ignoredFields)
Sets random values for all fields of a TestModel without specified fields as ignoredFields
|
String |
toInfo() |
String |
toJson()
Converting object to JSON string
|
String |
toString() |
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
model - The java object model to convertcom.fasterxml.jackson.core.JsonProcessingException - Throws exceptions if the given object doesn't match to the POJO class modelprotected static void setRandomValuesForAllFields(TestModel testModel, String... ignoredFields) throws Exception
testModel - all fields of testModel that need to be setignoredFields - fields to be excludedExceptionCopyright © 2005–2019 Alfresco Software. All rights reserved.