org.drools.workbench.screens.testscenario.client
Class ScenarioHelper
java.lang.Object
org.drools.workbench.screens.testscenario.client.ScenarioHelper
public class ScenarioHelper
- extends Object
Some utility methods as the display logic is a bit hairy.
Method Summary |
List<org.drools.workbench.models.testscenarios.shared.ExecutionTrace> |
getExecutionTraceFor(List<org.drools.workbench.models.testscenarios.shared.Fixture> fixtures)
|
List<org.drools.workbench.models.testscenarios.shared.Fixture> |
lumpyMap(List<org.drools.workbench.models.testscenarios.shared.Fixture> fixtures)
Called lumpy map - as this takes a flat list of fixtures, and groups
things together. |
Map<String,org.drools.workbench.models.testscenarios.shared.FixtureList> |
lumpyMapGlobals(List<org.drools.workbench.models.testscenarios.shared.FactData> globals)
Group the globals together by fact type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScenarioHelper
public ScenarioHelper()
lumpyMap
public List<org.drools.workbench.models.testscenarios.shared.Fixture> lumpyMap(List<org.drools.workbench.models.testscenarios.shared.Fixture> fixtures)
- Called lumpy map - as this takes a flat list of fixtures, and groups
things together. It will return a list - of which each element will
either be a list - or a map. If its a map - then its a map of FactData to
the fact type. If its a list, then it will be expectations or
retractions.
Man, this will be so much nicer with generics.
- Returns:
- List
OR
Map> OR ExecutionTrace>
lumpyMapGlobals
public Map<String,org.drools.workbench.models.testscenarios.shared.FixtureList> lumpyMapGlobals(List<org.drools.workbench.models.testscenarios.shared.FactData> globals)
- Group the globals together by fact type.
getExecutionTraceFor
public List<org.drools.workbench.models.testscenarios.shared.ExecutionTrace> getExecutionTraceFor(List<org.drools.workbench.models.testscenarios.shared.Fixture> fixtures)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.