/** Test of buildTable method, of class ProgramTableBuilder, difficult case. */ @Test public void difficultTestOfBuildTable() { List<Variable> variables = buildVariableForDifficultTest(); List<String> operators = buildOperatorsForDifficultTest(); ProgramTableBuilder instance = new ProgramTableBuilder(variables, operators); List<List<Object>> expResult = buildExpListForDifficultTest(); List<List<Object>> result = instance.buildTable(); assertEquals(expResult, result); }
/** Test of getStatesTable method, of class ProgramTableBuilder, simple case. */ @Test public void simpleTestOfGetStatesTable() { List<Variable> variables = buildVariableForSimpleTest(); List<String> operators = buildOperatorsForSimpleTest(); ProgramTableBuilder instance = new ProgramTableBuilder(variables, operators); Map<Integer, List<Object>> expResult = buildExpMapForSimpleTest(); instance.buildTable(); Map<Integer, List<Object>> result = instance.getStatesTable(); assertEquals(expResult, result); }