This is an automated email from the ASF dual-hosted git repository.

sseifert pushed a commit to branch feature/SLING-11893-fix-windows-build
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-contentloader.git

commit cb9411e99643057167a59d5d99f0d45744da0bca
Author: Stefan Seifert <stefanseif...@users.noreply.github.com>
AuthorDate: Wed May 31 16:18:25 2023 +0200

    SLING-11893 fix unit tests on Windows: remove assertion for executable 
which will always fail in windows FS
---
 .../sling/jcr/contentloader/internal/readers/ZipReaderTest.java    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/src/test/java/org/apache/sling/jcr/contentloader/internal/readers/ZipReaderTest.java
 
b/src/test/java/org/apache/sling/jcr/contentloader/internal/readers/ZipReaderTest.java
index 14d21eb..b4e4c34 100644
--- 
a/src/test/java/org/apache/sling/jcr/contentloader/internal/readers/ZipReaderTest.java
+++ 
b/src/test/java/org/apache/sling/jcr/contentloader/internal/readers/ZipReaderTest.java
@@ -221,7 +221,6 @@ public class ZipReaderTest {
             assertNotNull(tempFile);
             assertTrue(tempFile.canRead());
             assertTrue(tempFile.canWrite());
-            assertFalse(tempFile.canExecute());
         } finally {
             ZipReader.removeTempFile(tempFile);
         }
@@ -287,15 +286,15 @@ public class ZipReaderTest {
 
     /**
      * Helper that simulates an IOException thrown during creation of temp file
-     * 
+     *
      * @param fileMock the file mock to use
      * @param expectedMsg the message expected in the IOException
      */
     private void createTempFileIOException(final File fileMock, final String 
expectedMsg) throws Exception {
         doWorkAsNotUnix(() -> {
             Path pathMock = (Path) Proxy.newProxyInstance(
-                    Path.class.getClassLoader(), 
-                    new Class[] { Path.class }, 
+                    Path.class.getClassLoader(),
+                    new Class[] { Path.class },
                     (proxy, method, methodArgs) -> {
                       if (method.getName().equals("toFile")) {
                           return fileMock;

Reply via email to