|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.ide.common.client.modeldriven.testing.Scenario
public class Scenario
This represents a test scenario. It also encapsulates the result of a scenario run.
Constructor Summary | |
---|---|
Scenario()
|
Method Summary | |
---|---|
int[] |
countFailuresTotal()
|
protected boolean |
fieldExpectationFailed(VerifyField verifyField)
|
List<String> |
getFactNamesInScope(ExecutionTrace executionTrace,
boolean includeGlobals)
This will return a list of fact names that are in scope (including globals). |
Map<String,FactData> |
getFactTypes()
|
Map<String,List<FactData>> |
getFactTypesToFactData()
|
List<Fixture> |
getFixtures()
|
List<FactData> |
getGlobals()
|
Date |
getLastRunResult()
|
int |
getMaxRuleFirings()
|
List<String> |
getRules()
|
Map<String,String> |
getVariableTypes()
|
void |
insertBetween(Fixture fixtureBeforeTheNewOne,
Fixture newFixture)
Will slip in a fixture after the specified one, but before the next execution trace. |
boolean |
isFactDataReferenced(FactData factData)
|
boolean |
isFactNameReserved(String factName)
|
protected boolean |
isFactNameUsedInFactDataFixtures(String factName)
|
protected boolean |
isFactNameUsedInGlobals(String factName)
|
boolean |
isInclusive()
|
void |
removeExecutionTrace(ExecutionTrace executionTrace)
Remove fixtures between this ExecutionTrace and the previous one. |
void |
removeFixture(Fixture f)
Remove the specified fixture. |
protected boolean |
ruleFailedToFire(VerifyRuleFired verifyRuleFired)
|
void |
setInclusive(boolean inclusive)
|
void |
setLastRunResult(Date lastRunResult)
|
boolean |
wasSuccessful()
Returns true if this was a totally successful scenario, based on the results contained. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scenario()
Method Detail |
---|
public boolean wasSuccessful()
public void insertBetween(Fixture fixtureBeforeTheNewOne, Fixture newFixture)
public void removeFixture(Fixture f)
public void removeExecutionTrace(ExecutionTrace executionTrace)
public Map<String,FactData> getFactTypes()
public Map<String,String> getVariableTypes()
public Map<String,List<FactData>> getFactTypesToFactData()
public List<String> getFactNamesInScope(ExecutionTrace executionTrace, boolean includeGlobals)
public boolean isFactNameReserved(String factName)
protected boolean isFactNameUsedInFactDataFixtures(String factName)
protected boolean isFactNameUsedInGlobals(String factName)
public boolean isFactDataReferenced(FactData factData)
public int[] countFailuresTotal()
protected boolean fieldExpectationFailed(VerifyField verifyField)
protected boolean ruleFailedToFire(VerifyRuleFired verifyRuleFired)
public List<Fixture> getFixtures()
public int getMaxRuleFirings()
public List<FactData> getGlobals()
public void setLastRunResult(Date lastRunResult)
public Date getLastRunResult()
public List<String> getRules()
public void setInclusive(boolean inclusive)
public boolean isInclusive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |