File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
io/src/test/java/com/itextpdf/io/util Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ This file is part of the iText (R) project.
4444
4545import com .itextpdf .test .ExtendedITextTest ;
4646import com .itextpdf .test .annotations .type .UnitTest ;
47- import com .sun .org .apache .xerces .internal .jaxp .DocumentBuilderFactoryImpl ;
48- import com .sun .org .apache .xerces .internal .jaxp .SAXParserFactoryImpl ;
4947import org .junit .Assert ;
5048import org .junit .Test ;
5149import org .junit .experimental .categories .Category ;
@@ -67,13 +65,13 @@ public void initNewXmlDocumentTest() throws Exception {
6765 public void getDocumentBuilderFactoryTest () {
6866 DocumentBuilderFactory factory = XmlUtil .getDocumentBuilderFactory ();
6967
70- Assert .assertEquals (DocumentBuilderFactoryImpl . class , factory .getClass ());
68+ Assert .assertEquals (DocumentBuilderFactory . newInstance (). getClass () , factory .getClass ());
7169 }
7270
7371 @ Test
7472 public void createSAXParserFactoryTest () {
7573 SAXParserFactory factory = XmlUtil .createSAXParserFactory ();
7674
77- Assert .assertEquals (SAXParserFactoryImpl . class , factory .getClass ());
75+ Assert .assertEquals (SAXParserFactory . newInstance (). getClass () , factory .getClass ());
7876 }
7977}
You can’t perform that action at this time.
0 commit comments