Class sap.ui.test.matchers.PropertyStrictEqualsModule: sap/ui/test/matchers/PropertyStrictEquals

extends Matcher

PropertyStrictEquals - checks if a property has the exact same value


Since: 1.23.
Constructor Summary
new sap.ui.test.matchers.PropertyStrictEquals(mSettings?)PropertyStrictEquals - checks if a property has the exact same value.
Method Summary
sap.ui.test.matchers.PropertyStrictEquals.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.test.matchers.PropertyStrictEquals with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.test.matchers.PropertyStrictEquals.getMetadata()Returns a metadata object for class sap.ui.test.matchers.PropertyStrictEquals.
getName()Gets current value of property name.
getValue()Gets current value of property value.
isMatching(oControl)Checks if the control has a property that matches the value
setName(sName)Sets a new value for property name.
setValue(oValue)Sets a new value for property value.
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.test.matchers.PropertyStrictEquals(mSettings?)
PropertyStrictEquals - checks if a property has the exact same value.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.

The supported settings are:

In addition, all settings applicable to the base type sap.ui.test.matchers.Matcher can be used as well.

Parameters:
{object}mSettings? optional map/JSON-object with initial settings for the new PropertyStrictEquals
Method Detail
sap.ui.test.matchers.PropertyStrictEquals.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.test.matchers.PropertyStrictEquals with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.test.matchers.Matcher.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.test.matchers.PropertyStrictEquals.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.test.matchers.PropertyStrictEquals.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getName(): string
Gets current value of property name.

The Name of the property that is used for matching.

Returns:
{string} Value of property name
getValue(): any
Gets current value of property value.

The value of the property that is used for matching.

Returns:
{any} Value of property value
isMatching(oControl): boolean
Checks if the control has a property that matches the value
Parameters:
{sap.ui.core.Control}oControl the control that is checked by the matcher
Returns:
{boolean} true if the property has a strictly matching value.
Sets a new value for property name.

The Name of the property that is used for matching.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sName New value for property name
Returns:
{sap.ui.test.matchers.PropertyStrictEquals} Reference to this in order to allow method chaining
Sets a new value for property value.

The value of the property that is used for matching.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{any}oValue New value for property value
Returns:
{sap.ui.test.matchers.PropertyStrictEquals} Reference to this in order to allow method chaining