If a module provides resources and services supporting a new information resource model, that module may also provide a library of assert definitions tailored to that model. This will allow modules that use the resource model to have their own test module that can assert various facts about those resources that may be used.
For example, if a module provides the application domain information resource model Customer, then that module could also provide assertions such as customerValid and customerActive.
To provide an assert library, the resource model module will
export the resource
For example, if the resource module ID is
that module would provide the resource
In addition, any resources or services that the individual assert program
utilize must also be made available in the public space.
To use an assert library an import statement is used within a testlist:
and the resource model must be imported into the test space by adding the following to that module's module.xml file: