151 public void spNSTable03() throws Exception { 152 SAXParserFactory spf = SAXParserFactory.newInstance(); 153 assertFalse(spf.getFeature(NAMESPACES)); 154 assertTrue(spf.getFeature(NAMESPACE_PREFIXES)); 155 } 156 /** 157 * Here namespace processing is disabled, and namespace-prefixes is 158 * disabled. This will make namespace processing on.The testcase tests 159 * SAXParserFactory for this. This behavior only apply to crimson, 160 * not xerces. 161 * 162 * @throws Exception If any errors occur. 163 */ 164 @Test 165 public void spNSTable04() throws Exception { 166 SAXParserFactory spf = SAXParserFactory.newInstance(); 167 spf.setFeature(NAMESPACE_PREFIXES, false); 168 assertFalse(spf.getFeature(NAMESPACE_PREFIXES)); 169 } 170 } 171 172 | 151 public void spNSTable03() throws Exception { 152 SAXParserFactory spf = SAXParserFactory.newInstance(); 153 assertFalse(spf.getFeature(NAMESPACES)); 154 assertTrue(spf.getFeature(NAMESPACE_PREFIXES)); 155 } 156 /** 157 * Here namespace processing is disabled, and namespace-prefixes is 158 * disabled. This will make namespace processing on.The testcase tests 159 * SAXParserFactory for this. This behavior only apply to crimson, 160 * not xerces. 161 * 162 * @throws Exception If any errors occur. 163 */ 164 @Test 165 public void spNSTable04() throws Exception { 166 SAXParserFactory spf = SAXParserFactory.newInstance(); 167 spf.setFeature(NAMESPACE_PREFIXES, false); 168 assertFalse(spf.getFeature(NAMESPACE_PREFIXES)); 169 } 170 } |