You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2018/06/08 14:59:18 UTC
svn commit: r1833180 -
/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/dom/utils/XMLUtilsPerformanceTest.java
Author: coheigea
Date: Fri Jun 8 14:59:18 2018
New Revision: 1833180
URL: http://svn.apache.org/viewvc?rev=1833180&view=rev
Log:
Updating benchmark code
Modified:
santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/dom/utils/XMLUtilsPerformanceTest.java
Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/dom/utils/XMLUtilsPerformanceTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/dom/utils/XMLUtilsPerformanceTest.java?rev=1833180&r1=1833179&r2=1833180&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/dom/utils/XMLUtilsPerformanceTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/dom/utils/XMLUtilsPerformanceTest.java Fri Jun 8 14:59:18 2018
@@ -20,6 +20,8 @@ package org.apache.xml.security.test.dom
import java.io.StringReader;
+import javax.xml.parsers.DocumentBuilder;
+
import org.apache.xml.security.utils.XMLUtils;
import org.junit.Test;
import org.xml.sax.InputSource;
@@ -36,7 +38,9 @@ public class XMLUtilsPerformanceTest ext
@Test
public void testCreateDocumentBuilder() throws Exception {
InputSource inputSource = new InputSource(new StringReader("<xml>123</xml>"));
- XMLUtils.createDocumentBuilder(false).parse(inputSource);
+ DocumentBuilder db = XMLUtils.createDocumentBuilder(false);
+ db.parse(inputSource);
+ XMLUtils.repoolDocumentBuilder(db);
}
}