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
The following commit(s) were added to refs/heads/master by this push:
new bbf16fe7 Test properties to find out more about macOS failures on
GitHub CI
bbf16fe7 is described below
commit bbf16fe776d38aad9602a4df6067a90f5d0cf974
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Aug 29 10:57:45 2024 -0400
Test properties to find out more about macOS failures on GitHub CI
---
commons-vfs2/src/test/java/org/apache/commons/vfs2/UriTests.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/UriTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/UriTests.java
index d8f9fb63..a63cfc76 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/UriTests.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/UriTests.java
@@ -46,6 +46,7 @@ public class UriTests extends AbstractProviderTestCase {
// assert properties
assertEquals(readFolder.exists(), file.exists());
assertEquals(readFolder.getName(), file.getName());
+ // Needs JRE file providers
// assertEquals(readFolder.getPath(), file.getPath());
assertEquals(readFolder.getPublicURIString(),
file.getPublicURIString());
assertEquals(readFolder.getType(), file.getType());
@@ -62,7 +63,8 @@ public class UriTests extends AbstractProviderTestCase {
assertEquals(readFolder.isWriteable(), file.isWriteable());
assertEquals(readFolder.toString(), file.toString());
// compare objects
- assertEquals("file object " + readFolder.getClass() + ", " +
file.getClass(), readFolder, file);
+ // File objects don't implement equals().
+ // assertEquals("file object " + readFolder.getClass() + ", " +
file.getClass(), readFolder, file);
assertSame("file object " + readFolder.getClass() + ", " +
file.getClass(), readFolder, file);
// Try fetching the filesystem root by its URI
final String rootUri = readFolder.getName().getRootURI();