Package de.xima.fc.testhelper
Class FormEntityHelper
- java.lang.Object
-
- de.xima.fc.testhelper.FormEntityHelper
-
public final class FormEntityHelper extends Object
Test helper methods for form related entities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FormVersionupdateFormVersionWithPersistJson(FormVersion formVersion, String fileName, String... formElements)Updates the current form version with the persist JSON from the given file.
-
-
-
Method Detail
-
updateFormVersionWithPersistJson
public static FormVersion updateFormVersionWithPersistJson(FormVersion formVersion, String fileName, String... formElements)
Updates the current form version with the persist JSON from the given file.- Parameters:
fileName- JSON file with the persist JSON. If it starts with a slash: a full path to a classpath resource, without the extension. Otherwise, it should be a file name without an extension, which is looked up as a classpath resource in the/forms/folder.formElements- Names of the form elements to make available. When empty, all elements in the given persist JSON are added.- Returns:
- The updated form version.
-
-