Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 178 for shorter (0.33 sec)

  1. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                final int n = readBytesWireFormat(buffer, bufferIndex);
                if (n != this.byteCount && log.isTraceEnabled()) {
                    log.trace("Short read, have " + n + ", want " + this.byteCount);
                }
                bufferIndex += this.byteCount;
            }
    
            /*
             * if there is an andx and it itself is an andx then just recur by
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java

            assertEquals(2, countField.get(lookupSids));
    
            Field levelField = lsarpc.LsarLookupSids.class.getDeclaredField("level");
            levelField.setAccessible(true);
            assertEquals((short) 1, levelField.get(lookupSids));
        }
    
        @Test
        void constructor_shouldCreateCorrectLsarSidArrayX() throws Exception {
            // Arrange
            jcifs.SID mockSid1 = mock(jcifs.SID.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

        }
    
        @Test
        @DisplayName("Should handle parsing invalid message bytes")
        void testInvalidMessageBytes() {
            // Given
            byte[] invalidBytes = { 1, 2, 3, 4, 5 }; // Too short and invalid
    
            // When/Then
            assertThrows(IOException.class, () -> {
                new Type1Message(invalidBytes);
            });
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

                    DirectoryCacheScope.IMMEDIATE_CHILDREN);
    
            DirectoryCacheEntry entry = directoryLeaseManager.getCacheEntry(directoryPath);
            assertNotNull(entry);
    
            // Set very short expiration time
            entry.setMaxAge(50); // 50ms
    
            // Update cache
            List<SmbFile> files = Arrays.asList(mockFile1);
            directoryLeaseManager.updateDirectoryCache(directoryPath, files);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

    /**
     * Test class for Smb2TreeDisconnectRequest functionality
     */
    @DisplayName("Smb2TreeDisconnectRequest Tests")
    @ExtendWith(MockitoExtension.class)
    class Smb2TreeDisconnectRequestTest {
    
        private static final short SMB2_TREE_DISCONNECT = 0x0004;
    
        @Test
        @DisplayName("Should create request with correct command type")
        void testConstructorSetsCorrectCommand() throws Exception {
            // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeImpl.java

            req.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
            req.setInputData(new ValidateNegotiateInfoRequest(negoReq.getCapabilities(), negoReq.getClientGuid(),
                    (short) negoReq.getSecurityMode(), negoReq.getDialects()));
    
            Smb2IoctlResponse resp;
            try {
                resp = send(req, RequestParam.NO_RETRY);
            } catch (final SMBSignatureValidationException e) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         * @throws EmptyArgumentException
         *             If the argument is <code>null</code> or an empty array.
         */
        public static void assertArgumentNotEmpty(final String argName, final short[] argValue) {
            if (ArrayUtil.isEmpty(argValue)) {
                throw new EmptyArgumentException(argName, "ECL0011", asArray(argName));
            }
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SIDCacheImpl.java

                    try (LsaPolicyHandle policyHandle = new LsaPolicyHandle(handle, null, 0x00000001)) {
                        rpc = new MsrpcQueryInformationPolicy(policyHandle, (short) lsarpc.POLICY_INFO_ACCOUNT_DOMAIN, info);
                        handle.sendrecv(rpc);
                        if (rpc.retval != 0) {
                            throw new SmbException(rpc.retval, false);
                        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/dtyp/ACETest.java

        }
    
        @Test
        @DisplayName("Test appendCol helper method")
        void testAppendCol() {
            StringBuffer sb = new StringBuffer();
    
            // Test with short string
            ace.appendCol(sb, "test", 10);
            assertEquals("test      ", sb.toString());
    
            // Test with exact width string
            sb = new StringBuffer();
            ace.appendCol(sb, "exact", 5);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                byte[] buffer = new byte[100];
    
                int result = mock.decode(buffer, 0, 50);
                assertEquals(0, result);
            }
    
            @ParameterizedTest
            @ValueSource(strings = { "", "SHORT", "VERY_LONG_CONTEXT_NAME_FOR_TESTING", "特殊字符" })
            @DisplayName("Should handle various name strings")
            void testVariousNameStrings(String name) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
Back to top