com.liferay.portlet.dynamicdatalists.util.test
Class DDLRecordTestUtil
java.lang.Object
com.liferay.portlet.dynamicdatalists.util.test.DDLRecordTestUtil
public class DDLRecordTestUtil
- extends Object
|
Method Summary |
static Set<Locale> |
createAvailableLocales(Locale... locales)
|
static DDMForm |
createDDMForm(Set<Locale> availableLocales,
Locale defaultLocale)
|
static DDMFormField |
createDDMFormField(String name,
String label,
String type,
String dataType,
boolean localizable,
boolean repeatable,
boolean required)
|
static DDMFormFieldValue |
createDDMFormFieldValue(String name,
Value value)
|
static DDMFormValues |
createDDMFormValues(DDMForm ddmForm,
Set<Locale> availableLocales,
Locale defaultLocale)
|
static DDMFormFieldValue |
createLocalizedTextDDMFormFieldValue(String name,
String enValue)
|
static DDMFormFieldValue |
createTextDDMFormFieldValue(String name,
Value value)
|
static DDMFormFieldValue |
createUnlocalizedTextDDMFormFieldValue(String name,
String value)
|
static String |
getBasePath()
|
static ServiceContext |
getServiceContext(int workflowAction)
|
static String |
read(Class<?> testClass,
String fileName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDLRecordTestUtil
public DDLRecordTestUtil()
createAvailableLocales
public static Set<Locale> createAvailableLocales(Locale... locales)
createDDMForm
public static DDMForm createDDMForm(Set<Locale> availableLocales,
Locale defaultLocale)
createDDMFormField
public static DDMFormField createDDMFormField(String name,
String label,
String type,
String dataType,
boolean localizable,
boolean repeatable,
boolean required)
createDDMFormFieldValue
public static DDMFormFieldValue createDDMFormFieldValue(String name,
Value value)
createDDMFormValues
public static DDMFormValues createDDMFormValues(DDMForm ddmForm,
Set<Locale> availableLocales,
Locale defaultLocale)
createLocalizedTextDDMFormFieldValue
public static DDMFormFieldValue createLocalizedTextDDMFormFieldValue(String name,
String enValue)
createTextDDMFormFieldValue
public static DDMFormFieldValue createTextDDMFormFieldValue(String name,
Value value)
createUnlocalizedTextDDMFormFieldValue
public static DDMFormFieldValue createUnlocalizedTextDDMFormFieldValue(String name,
String value)
getBasePath
public static String getBasePath()
getServiceContext
public static ServiceContext getServiceContext(int workflowAction)
throws Exception
- Throws:
Exception
read
public static String read(Class<?> testClass,
String fileName)
throws Exception
- Throws:
Exception