Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 558 for isInvalid (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java

            assertFalse(region.hasAccess(RdmaAccess.REMOTE_READ), "Should not have remote read access");
    
            // Test cleanup
            region.close();
            assertFalse(region.isValid(), "Region should be invalid after close");
        }
    
        @Test
        public void testGetProviderName() {
            assertEquals("TCP Fallback", provider.getProviderName());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/TreeConnectResponseTest.java

            }
    
            @Test
            @DisplayName("Should throw exception for invalid structure size")
            void testReadBytesWireFormatInvalidSize() throws Exception {
                // Given - Invalid structure size
                byte[] buffer = new byte[16];
                buffer[0] = 0x0F; // Invalid size (15 instead of 16)
                buffer[1] = 0x00;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            when(fh.acquire()).thenReturn(fh);
            when(fh.isValid()).thenReturn(true, false); // first true, then false
    
            handle.ensureOpen();
            assertTrue(handle.isOpen());
    
            // Simulate invalidation
            assertFalse(handle.isOpen(), "Becomes not open when underlying handle invalid");
    
            // After close, report stale
            handle.close();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        }
    
        @Test
        @DisplayName("Test isValid returns false for invalid negotiation")
        void testIsValidReturnsFalse() {
            // Arrange
            when(negotiationResponse.isValid(cifsContext, negotiationRequest)).thenReturn(false);
    
            // Act
            boolean result = negotiationResponse.isValid(cifsContext, negotiationRequest);
    
            // Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/validation/UriTypeValidator.java

            case FILE -> ComponentUtil.getProtocolHelper().getFileProtocols();
            default -> throw new ConstraintDefinitionException("protocolType is empty or invalid: " + uriType.protocolType());
            };
        }
    
        @Override
        public boolean isValid(final String value, final ConstraintValidatorContext context) {
            if (StringUtil.isNotBlank(value)) {
                return check(protocols, value);
            }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sun Nov 23 12:34:02 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/SitemapsHelper.java

         * @param in the input stream to validate
         * @return true if the stream contains valid sitemap data, false otherwise
         */
        public boolean isValid(final InputStream in) {
            return isValid(in, true);
        }
    
        /**
         * Checks if the given input stream contains valid sitemap data.
         * @param in the input stream to validate
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 14 13:19:40 UTC 2025
    - 34.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                throw new SMBProtocolDecodingException("Invalid maxTransactSize: " + this.maxTransactSize + " (must be 0-16777216)");
            }
            if (this.maxReadSize < 0 || this.maxReadSize > 16777216) { // 16MB max
                throw new SMBProtocolDecodingException("Invalid maxReadSize: " + this.maxReadSize + " (must be 0-16777216)");
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // When
            boolean valid = response.isValid(mockContext, mockRequest);
    
            // Then
            assertTrue(valid);
            assertEquals(DialectVersion.SMB311, response.getSelectedDialect());
        }
    
        @Test
        @DisplayName("Should fail validation when not received")
        void testIsValidNotReceived() {
            // When
            boolean valid = response.isValid(mockContext, mockRequest);
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/rdma/RdmaConfigurationTest.java

            props.setProperty("jcifs.smb.client.useRDMA", "invalid");
            props.setProperty("jcifs.smb.client.rdmaReadWriteThreshold", "invalid");
            props.setProperty("jcifs.smb.client.rdmaMaxSendSize", "invalid");
            props.setProperty("jcifs.smb.client.rdmaMaxReceiveSize", "invalid");
            props.setProperty("jcifs.smb.client.rdmaCredits", "invalid");
    
            PropertyConfiguration config = new PropertyConfiguration(props);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtStatus.java

        int NT_STATUS_NOT_IMPLEMENTED = 0xC0000002;
        /** The specified information class is invalid */
        int NT_STATUS_INVALID_INFO_CLASS = 0xC0000003;
        /** Invalid access to memory location */
        int NT_STATUS_ACCESS_VIOLATION = 0xC0000005;
        /** The handle is invalid */
        int NT_STATUS_INVALID_HANDLE = 0xC0000008;
        /** The parameter is incorrect */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 14.9K bytes
    - Viewed (0)
Back to top