Class VerifyFact
- java.lang.Object
-
- org.drools.workbench.models.testscenarios.shared.VerifyFact
-
- All Implemented Interfaces:
Expectation,Fixture
public class VerifyFact extends Object implements Expectation
This is for making assertions over a specific facts value/state AFTER execution.
-
-
Field Summary
Fields Modifier and Type Field Description booleananonymousThis is true if it isn't a named fact, but it will just search working memory to verify.
-
Constructor Summary
Constructors Constructor Description VerifyFact()VerifyFact(String name, List<VerifyField> fieldValues)VerifyFact(String name, List<VerifyField> fieldValues, boolean anonymous)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()List<VerifyField>getFieldValues()StringgetName()voidsetDescription(String description)voidsetFieldValues(List<VerifyField> fieldValues)voidsetName(String name)booleanwasSuccessful()Return false if the assertion
-
-
-
Constructor Detail
-
VerifyFact
public VerifyFact()
-
VerifyFact
public VerifyFact(String name, List<VerifyField> fieldValues, boolean anonymous)
-
VerifyFact
public VerifyFact(String name, List<VerifyField> fieldValues)
-
-
Method Detail
-
wasSuccessful
public boolean wasSuccessful()
Description copied from interface:ExpectationReturn false if the assertion- Specified by:
wasSuccessfulin interfaceExpectation- Returns:
-
setFieldValues
public void setFieldValues(List<VerifyField> fieldValues)
-
getFieldValues
public List<VerifyField> getFieldValues()
-
setName
public void setName(String name)
-
getName
public String getName()
-
setDescription
public void setDescription(String description)
-
getDescription
public String getDescription()
-
-