Class sap.ui.test.matchers.AggregationFilledModule: sap/ui/test/matchers/AggregationFilled

extends Matcher

AggregationFilled - checks if an aggregation contains at least one entry


Since: 1.23.
Constructor Summary
new sap.ui.test.matchers.AggregationFilled(mSettings?)AggregationFilled - checks if an aggregation contains at least one entry.
Method Summary
sap.ui.test.matchers.AggregationFilled.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.test.matchers.AggregationFilled with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.test.matchers.AggregationFilled.getMetadata()Returns a metadata object for class sap.ui.test.matchers.AggregationFilled.
getName()Gets current value of property name.
isMatching(oControl)Checks if the control has a filled aggregation.
setName(sName)Sets a new value for property name.
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.test.matchers.AggregationFilled(mSettings?)
AggregationFilled - checks if an aggregation contains at least one entry.

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:

  • Properties

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 AggregationFilledMatcher
Method Detail
sap.ui.test.matchers.AggregationFilled.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.test.matchers.AggregationFilled 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.AggregationFilled.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.test.matchers.AggregationFilled.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getName(): string
Gets current value of property name.

The name of the aggregation that is used for matching.

Returns:
{string} Value of property name
isMatching(oControl): boolean
Checks if the control has a filled aggregation.
Parameters:
{sap.ui.core.Control}oControl the control that is checked by the matcher
Returns:
{boolean} true if the Aggregation set in the property aggregationName is filled, false if it is not.
Sets a new value for property name.

The name of the aggregation 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.AggregationFilled} Reference to this in order to allow method chaining