You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/02/11 13:47:19 UTC
[commons-vfs] branch master updated (856dea5 -> 7d75090)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git.
from 856dea5 Minor improvement: (#160)
new 85d9b2a Minor improvements #160.
new 061be8e Sort members.
new ed9d929 Rename test class to *TestCase to follow pattern.
new 7d75090 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-vfs
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
...oTest.java => Http5GetContentInfoTestCase.java} | 2 +-
.../vfs2/provider/http5/Http5ProviderTestCase.java | 56 +++++++++++-----------
src/changes/changes.xml | 2 +-
3 files changed, 30 insertions(+), 30 deletions(-)
rename commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/{Http5GetContentInfoTest.java => Http5GetContentInfoTestCase.java} (98%)
[commons-vfs] 01/04: Minor improvements #160.
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit 85d9b2a2ad49ce59d98043511c0076fd798d9ad7
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Feb 11 08:42:40 2021 -0500
Minor improvements #160.
---
src/changes/changes.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index cabb28d..89bb0bd 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -120,7 +120,7 @@ The <action> type attribute can be add,update,fix,remove.
Update commons.japicmp.version 0.14.3 -> 0.15.2.
</action>
<action dev="ggregory" due-to="Arturo Bernal" type="update">
- Minor Improvements, #152, #156.
+ Minor Improvements, #152, #156, #160.
</action>
<action dev="ggregory" due-to="Gary Gregory" type="update">
Update commons.spotbugs.impl.version 4.1.3 -> 4.2.0.
[commons-vfs] 04/04: Merge branch 'master' of
https://gitbox.apache.org/repos/asf/commons-vfs
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit 7d7509050c80db8fac5c4a075522b0dac05967a0
Merge: ed9d929 856dea5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Feb 11 08:47:05 2021 -0500
Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-vfs
.../java/org/apache/commons/vfs2/FileSystemOptions.java | 8 +-------
.../java/org/apache/commons/vfs2/cache/LRUFilesCache.java | 4 ++--
.../org/apache/commons/vfs2/cache/SoftRefFilesCache.java | 4 ++--
.../java/org/apache/commons/vfs2/filter/AgeFileFilter.java | 2 +-
.../org/apache/commons/vfs2/filter/SizeFileFilter.java | 2 +-
.../apache/commons/vfs2/provider/AbstractFileObject.java | 14 +++++++-------
.../java/org/apache/commons/vfs2/provider/UriParser.java | 1 +
.../apache/commons/vfs2/provider/sftp/SftpFileObject.java | 2 +-
.../commons/vfs2/provider/temp/TemporaryFileProvider.java | 8 +-------
9 files changed, 17 insertions(+), 28 deletions(-)
[commons-vfs] 03/04: Rename test class to *TestCase to follow
pattern.
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit ed9d929c3a19f99552eed3263b3e4b6ef574ca07
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Feb 11 08:46:56 2021 -0500
Rename test class to *TestCase to follow pattern.
---
.../{Http5GetContentInfoTest.java => Http5GetContentInfoTestCase.java} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5GetContentInfoTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5GetContentInfoTestCase.java
similarity index 98%
rename from commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5GetContentInfoTest.java
rename to commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5GetContentInfoTestCase.java
index 0530e42..31ea9b5 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5GetContentInfoTest.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5GetContentInfoTestCase.java
@@ -34,7 +34,7 @@ import junit.framework.TestCase;
/**
* Tests VFS-427 NPE on Http5FileObject.getContent().getContentInfo().
*/
-public class Http5GetContentInfoTest extends TestCase {
+public class Http5GetContentInfoTestCase extends TestCase {
FileSystemOptions getOptionsWithProxy() throws MalformedURLException {
// get proxy host and port from env var "https_proxy"
[commons-vfs] 02/04: Sort members.
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit 061be8ef05a6da482c505194dbe92146a8df5ed9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Feb 11 08:45:42 2021 -0500
Sort members.
---
.../vfs2/provider/http5/Http5ProviderTestCase.java | 56 +++++++++++-----------
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5ProviderTestCase.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5ProviderTestCase.java
index 4313cb7..e58a6f7 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5ProviderTestCase.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5ProviderTestCase.java
@@ -124,6 +124,13 @@ public class Http5ProviderTestCase extends AbstractProviderTestConfig {
return manager.resolveFile(uri);
}
+ // Test no longer passing 2016/04/28
+ public void ignoreTestHttp405() throws FileSystemException {
+ final FileObject fileObject = VFS.getManager()
+ .resolveFile("http5://www.w3schools.com/webservices/tempconvert.asmx?action=WSDL");
+ assert !fileObject.getContent().isEmpty();
+ }
+
/**
* Prepares the file system manager.
*/
@@ -134,6 +141,27 @@ public class Http5ProviderTestCase extends AbstractProviderTestConfig {
}
}
+ /** Ensure VFS-453 options are present. */
+ public void testHttpTimeoutConfig() {
+ final FileSystemOptions opts = new FileSystemOptions();
+ final Http5FileSystemConfigBuilder builder = Http5FileSystemConfigBuilder.getInstance();
+
+ // ensure defaults are 0
+ assertEquals(0, builder.getConnectionTimeout(opts));
+ assertEquals(0, builder.getSoTimeout(opts));
+ assertEquals("Jakarta-Commons-VFS", builder.getUserAgent(opts));
+
+ builder.setConnectionTimeout(opts, 60000);
+ builder.setSoTimeout(opts, 60000);
+ builder.setUserAgent(opts, "foo/bar");
+
+ // ensure changes are visible
+ assertEquals(60000, builder.getConnectionTimeout(opts));
+ assertEquals(60000, builder.getSoTimeout(opts));
+ assertEquals("foo/bar", builder.getUserAgent(opts));
+
+ }
+
private void testResloveFolderSlash(final String uri, final boolean followRedirect) throws FileSystemException {
VFS.getManager().getFilesCache().close();
final FileSystemOptions opts = new FileSystemOptions();
@@ -161,32 +189,4 @@ public class Http5ProviderTestCase extends AbstractProviderTestConfig {
public void testResloveFolderSlashYesRedirectOn() throws FileSystemException {
testResloveFolderSlash(ConnectionUri + "/read-tests/", true);
}
-
- // Test no longer passing 2016/04/28
- public void ignoreTestHttp405() throws FileSystemException {
- final FileObject fileObject = VFS.getManager()
- .resolveFile("http5://www.w3schools.com/webservices/tempconvert.asmx?action=WSDL");
- assert !fileObject.getContent().isEmpty();
- }
-
- /** Ensure VFS-453 options are present. */
- public void testHttpTimeoutConfig() {
- final FileSystemOptions opts = new FileSystemOptions();
- final Http5FileSystemConfigBuilder builder = Http5FileSystemConfigBuilder.getInstance();
-
- // ensure defaults are 0
- assertEquals(0, builder.getConnectionTimeout(opts));
- assertEquals(0, builder.getSoTimeout(opts));
- assertEquals("Jakarta-Commons-VFS", builder.getUserAgent(opts));
-
- builder.setConnectionTimeout(opts, 60000);
- builder.setSoTimeout(opts, 60000);
- builder.setUserAgent(opts, "foo/bar");
-
- // ensure changes are visible
- assertEquals(60000, builder.getConnectionTimeout(opts));
- assertEquals(60000, builder.getSoTimeout(opts));
- assertEquals("foo/bar", builder.getUserAgent(opts));
-
- }
}