commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1808755 - /commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ParseXmlInZipTestCase.java
Date Mon, 18 Sep 2017 18:23:14 GMT
Author: ggregory
Date: Mon Sep 18 18:23:13 2017
New Revision: 1808755

URL: http://svn.apache.org/viewvc?rev=1808755&view=rev
Log:
Better param name.

Modified:
    commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ParseXmlInZipTestCase.java

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ParseXmlInZipTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ParseXmlInZipTestCase.java?rev=1808755&r1=1808754&r2=1808755&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ParseXmlInZipTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ParseXmlInZipTestCase.java
Mon Sep 18 18:23:13 2017
@@ -127,13 +127,13 @@ public class ParseXmlInZipTestCase {
         testResolveAndParseXmlInZip("read-xml-tests/file1.xml", null);
     }
 
-    private void testResolveAndParseXmlInZip(final String path, final String xsdPathInZip)
+    private void testResolveAndParseXmlInZip(final String xmlPathInZip, final String xsdPathInZip)
             throws IOException, FileSystemException, SAXException {
         final File newZipFile = createTempFile();
         final String zipFilePath = "zip:file:" + newZipFile.getAbsolutePath();
         final FileSystemManager manager = VFS.getManager();
         try (final FileObject zipFileObject = manager.resolveFile(zipFilePath)) {
-            try (final FileObject xmlFileObject = zipFileObject.resolveFile(path)) {
+            try (final FileObject xmlFileObject = zipFileObject.resolveFile(xmlPathInZip))
{
                 try (final InputStream inputStream = xmlFileObject.getContent().getInputStream())
{
                     final Document document = newDocumentBuilder(zipFileObject, xmlFileObject,
xsdPathInZip)
                             .parse(inputStream);



Mime
View raw message