org.nuxeo.ecm.webengine.forms
Class TestFormInstance
java.lang.Object
org.nuxeo.ecm.webengine.forms.TestFormInstance
- All Implemented Interfaces:
- FormDataProvider, FormInstance
public class TestFormInstance
- extends Object
- implements FormInstance
Form instance to be used in unit tests.
- Author:
- Bogdan Stefanescu
TestFormInstance
public TestFormInstance(Map<String,String[]> params,
Map<String,Blob[]> blobs)
TestFormInstance
public TestFormInstance()
TestFormInstance
public TestFormInstance(Map<String,String[]> params)
setField
public void setField(String key,
String... values)
addField
public void addField(String key,
String... values)
setField
public void setField(String key,
Blob... values)
addField
public void addField(String key,
Blob... values)
getKeys
public Collection<String> getKeys()
- Specified by:
getKeys
in interface FormDataProvider
fillDocument
public void fillDocument(DocumentModel doc)
- TODO XXX implement it
- Specified by:
fillDocument
in interface FormInstance
get
public Object[] get(String key)
- Specified by:
get
in interface FormInstance
getBlob
public Blob getBlob(String key)
- Specified by:
getBlob
in interface FormInstance
getBlobs
public Blob[] getBlobs(String key)
- Specified by:
getBlobs
in interface FormInstance
getBlobFields
public Map<String,Blob[]> getBlobFields()
- Specified by:
getBlobFields
in interface FormInstance
getFormFields
public Map<String,String[]> getFormFields()
- Specified by:
getFormFields
in interface FormDataProvider
- Specified by:
getFormFields
in interface FormInstance
getList
public String[] getList(String key)
- Specified by:
getList
in interface FormDataProvider
getString
public String getString(String key)
- Specified by:
getString
in interface FormDataProvider
Copyright © 2011 Nuxeo SAS. All Rights Reserved.