aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2024-02-26 23:05:36 +0000
committerPJ Fanning <fanningpj@apache.org>2024-02-26 23:05:36 +0000
commit2496ce5229ae0327a11438a7ca13116e680bae8e (patch)
treee86b10656f54dc13f4858af0ba5aa025da33aacc /poi/src
parent025c90469548a21fbd8f843ac583cb8eeb459639 (diff)
downloadpoi-2496ce5229ae0327a11438a7ca13116e680bae8e.tar.gz
poi-2496ce5229ae0327a11438a7ca13116e680bae8e.zip
rework tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916017 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src')
-rw-r--r--poi/src/test/java/org/apache/poi/util/TestXMLHelper.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/poi/src/test/java/org/apache/poi/util/TestXMLHelper.java b/poi/src/test/java/org/apache/poi/util/TestXMLHelper.java
index 52041ffdba..4c11c8b4e5 100644
--- a/poi/src/test/java/org/apache/poi/util/TestXMLHelper.java
+++ b/poi/src/test/java/org/apache/poi/util/TestXMLHelper.java
@@ -136,10 +136,10 @@ class TestXMLHelper {
@Test
void testNewXMLInputFactory() {
XMLInputFactory factory = XMLHelper.newXMLInputFactory();
- assertTrue((boolean)factory.getProperty(XMLInputFactory.IS_NAMESPACE_AWARE));
- assertFalse((boolean)factory.getProperty(XMLInputFactory.IS_VALIDATING));
- assertFalse((boolean)factory.getProperty(XMLInputFactory.SUPPORT_DTD));
- assertFalse((boolean)factory.getProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES));
+ assertEquals(Boolean.TRUE, factory.getProperty(XMLInputFactory.IS_NAMESPACE_AWARE));
+ assertEquals(Boolean.FALSE, factory.getProperty(XMLInputFactory.IS_VALIDATING));
+ assertEquals(Boolean.FALSE, factory.getProperty(XMLInputFactory.SUPPORT_DTD));
+ assertEquals(Boolean.FALSE, factory.getProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES));
}
/**
@@ -148,7 +148,7 @@ class TestXMLHelper {
@Test
void testNewXMLOutputFactory() {
XMLOutputFactory factory = XMLHelper.newXMLOutputFactory();
- assertTrue((boolean)factory.getProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES));
+ assertEquals(Boolean.TRUE, factory.getProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES));
}
/**