public class GuidedDecisionTableTest {
@Test
public void testValueLists() {
final GuidedDecisionTable52 model = new GuidedDecisionTable52();
final PackageDataModelOracle loader = PackageDataModelOracleBuilder.newPackageOracleBuilder()
.addEnum( "Driver",
"name",
new String[]{ "bob", "michael" } )
.addEnum( "Person",
"rating",
new String[]{ "1", "2" } )
.build();
//Emulate server-to-client conversions
final AsyncPackageDataModelOracle oracle = new AsyncPackageDataModelOracleImpl();
final PackageDataModelOracleBaselinePayload dataModel = new PackageDataModelOracleBaselinePayload();
dataModel.setModelFields( loader.getProjectModelFields() );
dataModel.setWorkbenchEnumDefinitions( loader.getPackageWorkbenchDefinitions() );
populateDataModelOracle( mock( Path.class ),
model,
oracle,
dataModel );
final GuidedDecisionTableUtils utils = new GuidedDecisionTableUtils( model,