org.drools.guvnor.client.explorer.navigation.qa.testscenarios
Class ScenarioHelper

java.lang.Object
  extended by org.drools.guvnor.client.explorer.navigation.qa.testscenarios.ScenarioHelper

public class ScenarioHelper
extends Object

Some utility methods as the display logic is a bit hairy.


Constructor Summary
ScenarioHelper()
           
 
Method Summary
 List<ExecutionTrace> getExecutionTraceFor(List<Fixture> fixtures)
           
 List<Fixture> lumpyMap(List<Fixture> fixtures)
          Called lumpy map - as this takes a flat list of fixtures, and groups things together.
 Map<String,FixtureList> lumpyMapGlobals(List<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
 

Constructor Detail

ScenarioHelper

public ScenarioHelper()
Method Detail

lumpyMap

public List<Fixture> lumpyMap(List<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,FixtureList> lumpyMapGlobals(List<FactData> globals)
Group the globals together by fact type.


getExecutionTraceFor

public List<ExecutionTrace> getExecutionTraceFor(List<Fixture> fixtures)


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