public void testListParameterFlag() throws Exception { ListParameter listparameter = new ListParameter(); String options = "-list \"true false\" -property \"unpruned\""; listparameter.setOptions(Utils.splitOptions(options)); Vector<Performance> results = searchValuesAll(listparameter, new J48()); Map<Boolean, Boolean> expectedValues = new HashMap<Boolean, Boolean>(); for (Performance result : results) { J48 current = (J48) result.m_Classifier; expectedValues.put(current.getUnpruned(), true); } verifyExpectedValues(expectedValues, 2); assertEquals(expectedValues.size(), 2); } }