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()
boolean
boolean
getBoolean
(String s) byte[]
double
int
getKeys()
getKeys
(int i) long
getMap()
com.opensymphony.module.propertyset.PropertySetSchema
int
void
boolean
isSettable
(String s) void
remove()
void
void
setAsActualType
(String s, Object o) void
setBoolean
(String s, boolean b) void
void
void
void
void
void
void
setProperties
(String s, Properties properties) void
setSchema
(com.opensymphony.module.propertyset.PropertySetSchema propertySetSchema) void
void
void
boolean
supportsType
(int i) boolean
-
Constructor Details
-
MockPropertySet
public MockPropertySet() -
MockPropertySet
-
-
Method Details
-
getMap
-
setSchema
public void setSchema(com.opensymphony.module.propertyset.PropertySetSchema propertySetSchema) - Specified by:
setSchema
in interfacecom.opensymphony.module.propertyset.PropertySet
-
getSchema
public com.opensymphony.module.propertyset.PropertySetSchema getSchema() throws com.opensymphony.module.propertyset.PropertyException- Specified by:
getSchema
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setAsActualType
- Specified by:
setAsActualType
in interfacecom.opensymphony.module.propertyset.PropertySet
-
getAsActualType
- Specified by:
getAsActualType
in interfacecom.opensymphony.module.propertyset.PropertySet
-
setBoolean
- Specified by:
setBoolean
in interfacecom.opensymphony.module.propertyset.PropertySet
-
getBoolean
- Specified by:
getBoolean
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setData
- Specified by:
setData
in interfacecom.opensymphony.module.propertyset.PropertySet
-
getData
- Specified by:
getData
in 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:
setDate
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getDate
- Specified by:
getDate
in 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:
setDouble
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getDouble
- Specified by:
getDouble
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setInt
- Specified by:
setInt
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getInt
- Specified by:
getInt
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getKeys
- Specified by:
getKeys
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getKeys
- Specified by:
getKeys
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getKeys
- Specified by:
getKeys
in 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:
getKeys
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
setLong
- Specified by:
setLong
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getLong
- Specified by:
getLong
in 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:
setObject
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getObject
- Specified by:
getObject
in 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:
setProperties
in 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:
getProperties
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
isSettable
- Specified by:
isSettable
in interfacecom.opensymphony.module.propertyset.PropertySet
-
setString
public void setString(String s, String s1) throws com.opensymphony.module.propertyset.PropertyException - Specified by:
setString
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getString
- Specified by:
getString
in 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:
setText
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getText
- Specified by:
getText
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getType
- Specified by:
getType
in 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:
setXML
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
getXML
- Specified by:
getXML
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
exists
- Specified by:
exists
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
init
- Specified by:
init
in interfacecom.opensymphony.module.propertyset.PropertySet
-
remove
- Specified by:
remove
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
remove
public void remove() throws com.opensymphony.module.propertyset.PropertyException- Specified by:
remove
in interfacecom.opensymphony.module.propertyset.PropertySet
- Throws:
com.opensymphony.module.propertyset.PropertyException
-
supportsType
public boolean supportsType(int i) - Specified by:
supportsType
in interfacecom.opensymphony.module.propertyset.PropertySet
-
supportsTypes
public boolean supportsTypes()- Specified by:
supportsTypes
in interfacecom.opensymphony.module.propertyset.PropertySet
-
asMap
-