@Test public void testComplexWorkbookProperties() throws Exception { final InputStream stream = RuleWorksheetParseTest.class.getResourceAsStream("/data/ComplexWorkbook.xls"); final RuleSheetListener listener = getRuleSheetListener(stream); final CaseInsensitiveMap props = listener.getProperties(); assertNotNull(props); final String ruleSetName = props.getSingleProperty("RuleSet"); assertEquals("ruleSetName", ruleSetName); }
@Test public void testBasicWorkbookProperties() throws Exception { final InputStream stream = RuleWorksheetParseTest.class.getResourceAsStream("/data/BasicWorkbook.xls"); final RuleSheetListener listener = getRuleSheetListener(stream); final CaseInsensitiveMap props = listener.getProperties(); assertNotNull(props); assertEquals("myruleset", props.getSingleProperty("RuleSet")); assertEquals("someMisc", props.getSingleProperty("misc")); /* * System.out.println("Here are the global properties..."); * listener.getProperties().list(System.out); */ }