Skip to content

Commit 47cde98

Browse files
committed
Verify default parser features
1 parent b8cf387 commit 47cde98

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jvm/src/test/scala/scala/xml/XMLTest.scala

+5-5
Original file line numberDiff line numberDiff line change
@@ -547,27 +547,27 @@ class XMLTestJVM {
547547

548548
@UnitTest
549549
def issue17ExternalGeneralEntities: Unit = {
550-
assertFalse(defaultParserFactory.getFeature("http://xml.org/sax/features/external-general-entities"))
550+
assertTrue(defaultParserFactory.getFeature("http://xml.org/sax/features/external-general-entities"))
551551
}
552552

553553
@UnitTest
554554
def issue17LoadExternalDtd: Unit = {
555-
assertFalse(defaultParserFactory.getFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd"))
555+
assertTrue(defaultParserFactory.getFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd"))
556556
}
557557

558558
@UnitTest
559559
def issue17DisallowDoctypeDecl: Unit = {
560-
assertTrue(defaultParserFactory.getFeature("http://apache.org/xml/features/disallow-doctype-decl"))
560+
assertFalse(defaultParserFactory.getFeature("http://apache.org/xml/features/disallow-doctype-decl"))
561561
}
562562

563563
@UnitTest
564564
def issue17ExternalParameterEntities: Unit = {
565-
assertFalse(defaultParserFactory.getFeature("http://xml.org/sax/features/external-parameter-entities"))
565+
assertTrue(defaultParserFactory.getFeature("http://xml.org/sax/features/external-parameter-entities"))
566566
}
567567

568568
@UnitTest
569569
def issue17ResolveDtdUris: Unit = {
570-
assertFalse(defaultParserFactory.getFeature("http://xml.org/sax/features/resolve-dtd-uris"))
570+
assertTrue(defaultParserFactory.getFeature("http://xml.org/sax/features/resolve-dtd-uris"))
571571
}
572572

573573
@UnitTest

0 commit comments

Comments
 (0)