1
節目,我忽略的功能如下不能忽略單元測試SAX功能,但在成功運行
SAXParserFactory spf = SAXParserFactory.newInstance(); spf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
爲什麼第二行拋出異常的單元測試,但沒有happend在程序運行? org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.?
你能告訴我們測試用例嗎 – Ashish