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
  • Constructor Details

    • MockPropertySet

      public MockPropertySet()
    • MockPropertySet

      public MockPropertySet(Map<String,Object> map)
  • Method Details

    • getMap

      public Map getMap()
    • setSchema

      public void setSchema(com.opensymphony.module.propertyset.PropertySetSchema propertySetSchema)
      Specified by:
      setSchema in interface com.opensymphony.module.propertyset.PropertySet
    • getSchema

      public com.opensymphony.module.propertyset.PropertySetSchema getSchema() throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getSchema in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • setAsActualType

      public void setAsActualType(String s, Object o)
      Specified by:
      setAsActualType in interface com.opensymphony.module.propertyset.PropertySet
    • getAsActualType

      public Object getAsActualType(String s)
      Specified by:
      getAsActualType in interface com.opensymphony.module.propertyset.PropertySet
    • setBoolean

      public void setBoolean(String s, boolean b)
      Specified by:
      setBoolean in interface com.opensymphony.module.propertyset.PropertySet
    • getBoolean

      public boolean getBoolean(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getBoolean in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • setData

      public void setData(String s, byte[] bytes)
      Specified by:
      setData in interface com.opensymphony.module.propertyset.PropertySet
    • getData

      public byte[] getData(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getData in interface com.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 interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getDate

      public Date getDate(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getDate in interface com.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 interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getDouble

      public double getDouble(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getDouble in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • setInt

      public void setInt(String s, int i) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      setInt in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getInt

      public int getInt(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getInt in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getKeys

      public Collection getKeys() throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getKeys in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getKeys

      public Collection getKeys(int i) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getKeys in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getKeys

      public Collection getKeys(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getKeys in interface com.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 interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • setLong

      public void setLong(String s, long l) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      setLong in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getLong

      public long getLong(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getLong in interface com.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 interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getObject

      public Object getObject(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getObject in interface com.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 interface com.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 interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • isSettable

      public boolean isSettable(String s)
      Specified by:
      isSettable in interface com.opensymphony.module.propertyset.PropertySet
    • setString

      public void setString(String s, String s1) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      setString in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getString

      public String getString(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getString in interface com.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 interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getText

      public String getText(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getText in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getType

      public int getType(String key) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getType in interface com.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 interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • getXML

      public Document getXML(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      getXML in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • exists

      public boolean exists(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      exists in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • init

      public void init(Map map, Map map1)
      Specified by:
      init in interface com.opensymphony.module.propertyset.PropertySet
    • remove

      public void remove(String s) throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      remove in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • remove

      public void remove() throws com.opensymphony.module.propertyset.PropertyException
      Specified by:
      remove in interface com.opensymphony.module.propertyset.PropertySet
      Throws:
      com.opensymphony.module.propertyset.PropertyException
    • supportsType

      public boolean supportsType(int i)
      Specified by:
      supportsType in interface com.opensymphony.module.propertyset.PropertySet
    • supportsTypes

      public boolean supportsTypes()
      Specified by:
      supportsTypes in interface com.opensymphony.module.propertyset.PropertySet
    • asMap

      public Map<String,Object> asMap()