All Downloads are FREE. Search and download functionalities are using the official Maven repository.

models.autoRealization.Tests.M1.Requiredness.Requiredness.md Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
# Requiredness

## Description

This tests the ability to use requiredness in property selectors

## Prerequisites

## Tests

### IncludeRequired

Description
The realization defines the following rules: * Root objects include non-required properties * Reference objects include required properties
The realization defines the following rules: * Root objects include non-required properties * Reference objects include required properties
RAPID Model
Requiredness_IncludeRequired.rapid
Assertions
``` IncludeRequired model.tbBalanceSheetObject.check [ named("BalanceSheet_Root").selects("RootObjects") withProps [ including("assets", "liabilities", "equity") includingRef("statement") [ named("FinancialStatement_Ref").selects("RefObjects") withOnlyProps("statementID") ] includingRef("accountingMethod") [ named("AccountingStandard_Ref").selects("RefObjects") withOnlyProps("accountingStandardID") ] includingRef("comments") [ named("Comment_Ref").selects("RefObjects") withOnlyProps("commentID") ] ] ] ```
### ExcludeRequired
Description
This test behaves exactly like IncludeRequiredness, but the realization model uses `excludeProperties` instead of `includeProperties` to achieve the result.
RAPID Model
Requiredness_ExcludeRequired.rapid
Assertions
``` ExcludeRequired // This test case behaves exactly like IncludeRequiredness, but uses `excludeProperties` instead of `includeProperties` testIncludeRequired(model) ```




© 2015 - 2024 Weber Informatics LLC | Privacy Policy