Package com.atlassian.mock.propertyset
Class MockPropertySet
java.lang.Object
com.atlassian.mock.propertyset.MockPropertySet
- All Implemented Interfaces:
com.opensymphony.module.propertyset.PropertySet
public class MockPropertySet
extends Object
implements com.opensymphony.module.propertyset.PropertySet
Simple mock @{link PropertySet} for dashboard tests. * Not completely implemented *.
- Since:
- v3.13
-
Field Summary
Fields inherited from interface com.opensymphony.module.propertyset.PropertySet
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()booleanbooleangetBoolean(String s) byte[]doubleintgetKeys()getKeys(int i) longgetMap()com.opensymphony.module.propertyset.PropertySetSchemaintvoidbooleanisSettable(String s) voidremove()voidvoidsetAsActualType(String s, Object o) voidsetBoolean(String s, boolean b) voidvoidvoidvoidvoidvoidvoidsetProperties(String s, Properties properties) voidsetSchema(com.opensymphony.module.propertyset.PropertySetSchema propertySetSchema) voidvoidvoidbooleansupportsType(int i) boolean
-
Constructor Details
-
MockPropertySet
public MockPropertySet() -
MockPropertySet
-
-
Method Details
-
getMap
-
setSchema
public void setSchema(com.opensymphony.module.propertyset.PropertySetSchema propertySetSchema) - Specified by:
setSchemain interfacecom.opensymphony.module.propertyset.PropertySet
-
getSchema
public com.opensymphony.module.propertyset.PropertySetSchema getSchema() throws com.opensymphony.module.propertyset.PropertyException- Specified by:
getSchemain interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setAsActualType
- Specified by:
setAsActualTypein interfacecom.opensymphony.module.propertyset.PropertySet
-
getAsActualType
- Specified by:
getAsActualTypein interfacecom.opensymphony.module.propertyset.PropertySet
-
setBoolean
- Specified by:
setBooleanin interfacecom.opensymphony.module.propertyset.PropertySet
-
getBoolean
- Specified by:
getBooleanin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setData
- Specified by:
setDatain interfacecom.opensymphony.module.propertyset.PropertySet
-
getData
- Specified by:
getDatain interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setDate
public void setDate(String s, Date date) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
setDatein interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getDate
- Specified by:
getDatein interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setDouble
public void setDouble(String s, double v) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
setDoublein interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getDouble
- Specified by:
getDoublein interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setInt
- Specified by:
setIntin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getInt
- Specified by:
getIntin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getKeys
- Specified by:
getKeysin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getKeys
- Specified by:
getKeysin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getKeys
- Specified by:
getKeysin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getKeys
public Collection getKeys(String s, int i) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
getKeysin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setLong
- Specified by:
setLongin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getLong
- Specified by:
getLongin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setObject
public void setObject(String s, Object o) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
setObjectin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getObject
- Specified by:
getObjectin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setProperties
public void setProperties(String s, Properties properties) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
setPropertiesin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getProperties
public Properties getProperties(String s) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
getPropertiesin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
isSettable
- Specified by:
isSettablein interfacecom.opensymphony.module.propertyset.PropertySet
-
setString
public void setString(String s, String s1) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
setStringin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getString
- Specified by:
getStringin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setText
public void setText(String s, String s1) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
setTextin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getText
- Specified by:
getTextin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getType
- Specified by:
getTypein interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setXML
public void setXML(String s, Document document) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
setXMLin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getXML
- Specified by:
getXMLin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
exists
- Specified by:
existsin interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
init
- Specified by:
initin interfacecom.opensymphony.module.propertyset.PropertySet
-
remove
- Specified by:
removein interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
remove
public void remove() throws com.opensymphony.module.propertyset.PropertyException- Specified by:
removein interfacecom.opensymphony.module.propertyset.PropertySet- Throws:
com.opensymphony.module.propertyset.PropertyException
-
supportsType
public boolean supportsType(int i) - Specified by:
supportsTypein interfacecom.opensymphony.module.propertyset.PropertySet
-
supportsTypes
public boolean supportsTypes()- Specified by:
supportsTypesin interfacecom.opensymphony.module.propertyset.PropertySet
-
asMap
-