org.drools.ide.common.client.modeldriven.testing
Class VerifyFact

java.lang.Object
  extended by org.drools.ide.common.client.modeldriven.testing.VerifyFact
All Implemented Interfaces:
Serializable, PortableObject, Expectation, Fixture

public class VerifyFact
extends Object
implements Expectation

This is for making assertions over a specific facts value/state AFTER execution.

See Also:
Serialized Form

Field Summary
 boolean anonymous
          This is true if it isn't a named fact, but it will just search working memory to verify.
 
Constructor Summary
VerifyFact()
           
VerifyFact(String name, List<VerifyField> fieldValues)
           
VerifyFact(String name, List<VerifyField> fieldValues, boolean anonymous)
           
 
Method Summary
 String getDescription()
           
 List<VerifyField> getFieldValues()
           
 String getName()
           
 void setDescription(String description)
           
 void setFieldValues(List<VerifyField> fieldValues)
           
 void setName(String name)
           
 boolean wasSuccessful()
          Return false if the assertion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

anonymous

public boolean anonymous
This is true if it isn't a named fact, but it will just search working memory to verify.

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: Expectation
Return false if the assertion

Specified by:
wasSuccessful in interface Expectation
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()


Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.