}
@Test
public void testConditionsIndexedParameters() {
final ConversionResult result = new ConversionResult();
final List<DataListener> listeners = new ArrayList<DataListener>();
final GuidedDecisionTableGeneratorListener listener = new GuidedDecisionTableGeneratorListener( result );
listeners.add( listener );
//Convert
final ExcelParser parser = new ExcelParser( listeners );
final InputStream is = this.getClass().getResourceAsStream( "Conditions-indexedParameters.xls" );
try {
parser.parseFile( is );
} finally {
try {
is.close();
} catch ( IOException ioe ) {
fail( ioe.getMessage() );
}
}
//Check conversion results
assertEquals( 0,
result.getMessages().size() );
//Check basics
List<GuidedDecisionTable52> dtables = listener.getGuidedDecisionTables();
assertNotNull( dtables );