Skip to main content
Skip table of contents

setAllowOnlyMockedValues

Versionshinweise

25.5

Code

GROOVY
void setAllowOnlyMockedValues(boolean mockedValuesOnly)

Beschreibung

Gibt an, ob ein Zugriff (LogicScriptUtils.getPropertyValue, LogicScriptUtils.isPropertyValue) auf einen nicht überschriebenen Eintrag im PropertyMapper bei der Testausführung zu einem Fehler führen soll.

Parameter

  • mockedValuesOnly - true, falls ein Zugriff auf einen nicht überschriebene Eintrag im PropertyMapper zu einem Fehler führen soll.

Beispiele

GROOVY
LogicScriptMockUtils.setAllowOnlyMockedValues(true);
Object value = LogicScriptUtils.getPropertyValue("MyId", "MyProperty", "MyFallback"); // leads to an error because the property value is not mocked

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.