Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 176 for getfile (1.22 sec)

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

            // Act
            SmbPipeHandle handle = pipe.openPipe();
    
            // Assert: observable handle behavior without network I/O
            assertNotNull(handle, "Handle must not be null");
            assertSame(pipe, handle.getPipe(), "Handle should reference originating pipe");
            assertSame(handle, handle.unwrap(SmbPipeHandle.class), "unwrap should return same instance for interface type");
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            resp.decode(packet, 0);
            assertEquals(Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, resp.getCtlCode());
            assertEquals(0x1234, resp.getIoctlFlags());
            assertNotNull(resp.getFileId());
            assertEquals(16, resp.getFileId().length);
            assertEquals(12, resp.getOutputLength());
    
            SrvCopyChunkCopyResponse od = resp.getOutputData(SrvCopyChunkCopyResponse.class);
            assertEquals(1, od.getChunksWritten());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/https/HandlerTest.java

            @Test
            @DisplayName("DEFAULT_HTTPS_PORT should be public static final")
            void testDefaultHttpsPortModifiers() throws NoSuchFieldException {
                // When
                var field = Handler.class.getField("DEFAULT_HTTPS_PORT");
    
                // Then
                assertTrue(Modifier.isPublic(field.getModifiers()));
                assertTrue(Modifier.isStatic(field.getModifiers()));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

                @Override
                public void setFileId(byte[] fileId) {
                    this.fileId = fileId;
                    this.setCount++;
                }
    
                public byte[] getFileId() {
                    return fileId;
                }
    
                public int getSetCount() {
                    return setCount;
                }
            }
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnect.java

        }
    
        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
        /**
         * Get the file ID
         * @return the 16-byte file ID
         */
        public byte[] getFileId() {
            return Arrays.copyOf(fileId, 16);
        }
    
        @Override
        public int size() {
            // Context header (16) + name length (4) + padding to 8-byte alignment + data (16)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

                CommonServerMessageBlockRequest req;
                NotifyResponse resp = null;
                if (th.isSMB2()) {
                    final Smb2ChangeNotifyRequest r = new Smb2ChangeNotifyRequest(th.getConfig(), this.handle.getFileId());
                    r.setCompletionFilter(this.filter);
                    r.setNotifyFlags(this.recursive ? Smb2ChangeNotifyRequest.SMB2_WATCH_TREE : 0);
                    req = r;
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/fscc/SmbInfoAllocation.java

        }
    
        @Override
        public long getCapacity() {
            return this.alloc * this.sectPerAlloc * this.bytesPerSect;
        }
    
        @Override
        public long getFree() {
            return this.free * this.sectPerAlloc * this.bytesPerSect;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Decodable#decode(byte[], int, int)
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            when(handle.getTree()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getConfig()).thenReturn(mock(Configuration.class));
            when(handle.getFileId()).thenReturn(fileId);
            when(tree.send(any(CommonServerMessageBlockRequest.class), any(), any(), any())).thenReturn(resp);
        }
    
        // Prepare SMB1 flow with a given response
    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/org/codelibs/core/beans/impl/BeanDescImplTest.java

            assertThat(propDesc.getReadMethod(), is(notNullValue()));
            assertThat(propDesc.getWriteMethod(), is(nullValue()));
            assertThat(propDesc.getField(), is(notNullValue()));
    
            propDesc = beanDesc.getPropertyDesc("CCC");
            assertThat(propDesc.getPropertyName(), is("CCC"));
            assertThat(propDesc.getPropertyType(), is(sameClass(boolean.class)));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java

            }
    
            DurableHandleReconnect reconnect = new DurableHandleReconnect(fileId);
    
            assertEquals("DHnC", new String(reconnect.getName()));
            assertArrayEquals(fileId, reconnect.getFileId());
            assertTrue(reconnect.size() > 0);
    
            // Test encoding
            byte[] buffer = new byte[reconnect.size()];
            int encoded = reconnect.encode(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top