Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for setAttributes (0.07 sec)

  1. src/test/java/jcifs/smb/SmbFileTest.java

                // Arrange
                doReturn(SmbConstants.ATTR_NORMAL).when(smbFile).getAttributes();
                doNothing().when(smbFile).setAttributes(anyInt());
    
                // Act
                smbFile.setReadOnly();
    
                // Assert
                verify(smbFile).setAttributes(SmbConstants.ATTR_NORMAL | SmbConstants.ATTR_READONLY);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbResourceTest.java

            @Test
            @DisplayName("getAttributes should return file attributes")
            void testGetAttributes() throws CIFSException {
                // Given
                int expectedAttributes = 0x20; // FILE_ATTRIBUTE_ARCHIVE
                when(mockResource.getAttributes()).thenReturn(expectedAttributes);
    
                // When
                int attributes = mockResource.getAttributes();
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbResource.java

         * <code>setAttributes( getAttributes() &amp; ~ATTR_READONLY )</code>.
         *
         * @throws CIFSException if an error occurs modifying the resource
         */
        void setReadWrite() throws CIFSException;
    
        /**
         * Make this file read-only. This is shorthand for <code>setAttributes(
         * getAttributes() | ATTR_READ_ONLY )</code>.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

                factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, StringUtil.EMPTY);
                factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_SCHEMA, StringUtil.EMPTY);
    
                for (final Map.Entry<String, Object> entry : attributeMap.entrySet()) {
                    factory.setAttribute(entry.getKey(), entry.getValue());
                }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            assertEquals(originalInfo.getLastAccessTime(), decodedInfo.getLastAccessTime());
            assertEquals(originalInfo.getLastWriteTime(), decodedInfo.getLastWriteTime());
            assertEquals(originalInfo.getAttributes(), decodedInfo.getAttributes());
        }
    
        @Test
        @DisplayName("Test with various attribute flags")
        void testWithVariousAttributeFlags() {
            // Test common file attribute combinations
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            assertEquals(original.getLastAccessTime(), decoded.getLastAccessTime());
            assertEquals(original.getLastWriteTime(), decoded.getLastWriteTime());
            assertEquals(original.getAttributes(), decoded.getAttributes());
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() {
            FileBasicInfo info =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/FileEntryTest.java

                    Arguments.of((IntGetter) FileEntry::getType, Integer.MAX_VALUE, "max type"),
    
                    Arguments.of((IntGetter) FileEntry::getAttributes, 0, "no attributes"),
                    Arguments.of((IntGetter) FileEntry::getAttributes, 0xFFFF, "many attributes"),
    
                    Arguments.of((IntGetter) FileEntry::getFileIndex, -5, "negative index"),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                // Verify interactions
                assertEquals(0x20, response.info.getAttributes());
                assertEquals(1024L, response.info.getSize());
                assertEquals(1000000L, response.info.getCreateTime());
                assertEquals(2000000L, response.info.getLastWriteTime());
    
                // Verify the mock was called
                verify(mockInfo).getAttributes();
                verify(mockInfo).getSize();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

            assertEquals(SmbConstants.TYPE_SHARE, info.getType());
        }
    
        @Test
        @DisplayName("Test getAttributes always returns readonly directory")
        void testGetAttributes() {
            // Default instance
            assertEquals(SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, shareInfo.getAttributes());
    
            // Instance with values - attributes are still constant
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmServletTest.java

                ntlmServlet.service(request, response);
    
                // Verify that user information is stored in the session
                verify(session).setAttribute("NtlmHttpAuth", ntlmAuth);
                verify(session).setAttribute("ntlmuser", "user");
                verify(session).setAttribute("ntlmdomain", "TEST_DOMAIN");
    
                // Verify that the chain continues
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top