File tree 1 file changed +2
-4
lines changed
io/src/test/java/com/itextpdf/io/util
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.
44
44
45
45
import com .itextpdf .test .ExtendedITextTest ;
46
46
import 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 ;
49
47
import org .junit .Assert ;
50
48
import org .junit .Test ;
51
49
import org .junit .experimental .categories .Category ;
@@ -67,13 +65,13 @@ public void initNewXmlDocumentTest() throws Exception {
67
65
public void getDocumentBuilderFactoryTest () {
68
66
DocumentBuilderFactory factory = XmlUtil .getDocumentBuilderFactory ();
69
67
70
- Assert .assertEquals (DocumentBuilderFactoryImpl . class , factory .getClass ());
68
+ Assert .assertEquals (DocumentBuilderFactory . newInstance (). getClass () , factory .getClass ());
71
69
}
72
70
73
71
@ Test
74
72
public void createSAXParserFactoryTest () {
75
73
SAXParserFactory factory = XmlUtil .createSAXParserFactory ();
76
74
77
- Assert .assertEquals (SAXParserFactoryImpl . class , factory .getClass ());
75
+ Assert .assertEquals (SAXParserFactory . newInstance (). getClass () , factory .getClass ());
78
76
}
79
77
}
You can’t perform that action at this time.
0 commit comments