From 79e45c307c6b6fe2cfd31a57ad307c81a722f229 Mon Sep 17 00:00:00 2001 From: elharo Date: Fri, 17 Jul 2026 15:00:11 +0000 Subject: [PATCH] Fix schema config test assertions (VALIDATION_NONE -> VALIDATION_PARTIAL) --- build.xml | 18 +++++++++--------- .../schema/config/IgnoreXSIType_C_AC_Test.java | 2 +- .../schema/config/IgnoreXSIType_C_CA_Test.java | 2 +- .../schema/config/IgnoreXSIType_C_C_Test.java | 4 ++-- .../config/UnparsedEntityCheckingTest.java | 1 - .../config/UseGrammarPoolOnly_True_Test.java | 2 +- 6 files changed, 14 insertions(+), 15 deletions(-) diff --git a/build.xml b/build.xml index 3f17b5112..34cd7f0ea 100644 --- a/build.xml +++ b/build.xml @@ -837,15 +837,15 @@ Authors: - - + + + + + + diff --git a/tests/schema/config/IgnoreXSIType_C_AC_Test.java b/tests/schema/config/IgnoreXSIType_C_AC_Test.java index b2d9f4409..8b0919df0 100644 --- a/tests/schema/config/IgnoreXSIType_C_AC_Test.java +++ b/tests/schema/config/IgnoreXSIType_C_AC_Test.java @@ -144,7 +144,7 @@ private void checkTrueResult() { child = super.getChild(2); assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, child.getValidity()); - assertValidationAttempted(ItemPSVI.VALIDATION_NONE, child + assertValidationAttempted(ItemPSVI.VALIDATION_PARTIAL, child .getValidationAttempted()); assertElementNull(child.getElementDeclaration()); assertAnyType(child.getTypeDefinition()); diff --git a/tests/schema/config/IgnoreXSIType_C_CA_Test.java b/tests/schema/config/IgnoreXSIType_C_CA_Test.java index 58425c9af..476c337c0 100644 --- a/tests/schema/config/IgnoreXSIType_C_CA_Test.java +++ b/tests/schema/config/IgnoreXSIType_C_CA_Test.java @@ -136,7 +136,7 @@ private void checkTrueResult() { PSVIElementNSImpl child = super.getChild(1); assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, child.getValidity()); - assertValidationAttempted(ItemPSVI.VALIDATION_NONE, child + assertValidationAttempted(ItemPSVI.VALIDATION_PARTIAL, child .getValidationAttempted()); assertElementNull(child.getElementDeclaration()); assertAnyType(child.getTypeDefinition()); diff --git a/tests/schema/config/IgnoreXSIType_C_C_Test.java b/tests/schema/config/IgnoreXSIType_C_C_Test.java index 27e3c50a9..f25f8a7f9 100644 --- a/tests/schema/config/IgnoreXSIType_C_C_Test.java +++ b/tests/schema/config/IgnoreXSIType_C_C_Test.java @@ -129,14 +129,14 @@ public void testSetTrueFragment() { private void checkTrueResult() { assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, fRootNode.getValidity()); - assertValidationAttempted(ItemPSVI.VALIDATION_NONE, fRootNode + assertValidationAttempted(ItemPSVI.VALIDATION_PARTIAL, fRootNode .getValidationAttempted()); assertElementNull(fRootNode.getElementDeclaration()); assertAnyType(fRootNode.getTypeDefinition()); PSVIElementNSImpl child = super.getChild(1); assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, child.getValidity()); - assertValidationAttempted(ItemPSVI.VALIDATION_NONE, child + assertValidationAttempted(ItemPSVI.VALIDATION_PARTIAL, child .getValidationAttempted()); assertElementNull(child.getElementDeclaration()); assertAnyType(child.getTypeDefinition()); diff --git a/tests/schema/config/UnparsedEntityCheckingTest.java b/tests/schema/config/UnparsedEntityCheckingTest.java index 3c7798fc6..146c5092b 100644 --- a/tests/schema/config/UnparsedEntityCheckingTest.java +++ b/tests/schema/config/UnparsedEntityCheckingTest.java @@ -55,7 +55,6 @@ public void testDefaultValid() { } checkDefault(); - throw new RuntimeException(); } public void testSetFalseValid() { diff --git a/tests/schema/config/UseGrammarPoolOnly_True_Test.java b/tests/schema/config/UseGrammarPoolOnly_True_Test.java index 35fc054d5..7345f6b31 100644 --- a/tests/schema/config/UseGrammarPoolOnly_True_Test.java +++ b/tests/schema/config/UseGrammarPoolOnly_True_Test.java @@ -60,7 +60,7 @@ public void testUsingOnlyGrammarPool() { } assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, fRootNode.getValidity()); - assertValidationAttempted(ItemPSVI.VALIDATION_NONE, fRootNode + assertValidationAttempted(ItemPSVI.VALIDATION_PARTIAL, fRootNode .getValidationAttempted()); assertElementNull(fRootNode.getElementDeclaration()); assertAnyType(fRootNode.getTypeDefinition());