public class Scenario extends Object implements org.drools.workbench.models.datamodel.imports.HasImports
Constructor and Description |
---|
Scenario() |
Scenario(String packageName,
String name) |
Modifier and Type | Method and Description |
---|---|
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<String> |
getFailureMessages() |
List<Fixture> |
getFixtures() |
List<FactData> |
getGlobals() |
org.drools.workbench.models.datamodel.imports.Imports |
getImports() |
List<String> |
getKSessions() |
Date |
getLastRunResult() |
int |
getMaxRuleFirings() |
String |
getName() |
String |
getPackageName() |
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 |
setImports(org.drools.workbench.models.datamodel.imports.Imports imports) |
void |
setInclusive(boolean inclusive) |
void |
setLastRunResult(Date lastRunResult) |
void |
setName(String name) |
void |
setPackageName(String packageName) |
boolean |
wasSuccessful()
Returns true if this was a totally successful scenario, based on the
results contained.
|
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 int getMaxRuleFirings()
public void setLastRunResult(Date lastRunResult)
public Date getLastRunResult()
public void setInclusive(boolean inclusive)
public boolean isInclusive()
public void setName(String name)
public String getName()
public void setImports(org.drools.workbench.models.datamodel.imports.Imports imports)
setImports
in interface org.drools.workbench.models.datamodel.imports.HasImports
public org.drools.workbench.models.datamodel.imports.Imports getImports()
getImports
in interface org.drools.workbench.models.datamodel.imports.HasImports
public String getPackageName()
public void setPackageName(String packageName)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.