Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 844 for INVALID (0.07 sec)

  1. src/test/java/jcifs/pac/PacCredentialTypeTest.java

            // A null byte array should cause a PACDecodingException.
            PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacCredentialType(null));
            assertEquals("Invalid PAC credential type", exception.getMessage());
        }
    
        /**
         * Tests the constructor with a byte array that is too large.
         */
        @Test
        void testConstructorWithDataTooLarge() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  2. cmd/admin-handlers-pools.go

    			idx, err = strconv.Atoi(pool)
    			if err != nil {
    				// We didn't find any matching pools, invalid input
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    				return
    			}
    		} else {
    			idx = globalEndpoints.GetPoolIdx(pool)
    			if idx == -1 {
    				// We didn't find any matching pools, invalid input
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    				return
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Sep 04 20:47:24 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmContext.java

            return switch (this.state) {
            case 1 -> makeNegotiate(token);
            case 2 -> makeAuthenticate(token);
            default -> throw new SmbException("Invalid state");
            };
        }
    
        /**
         * Creates a Type 3 (authentication) message in response to a Type 2 (challenge) message.
         * @param token the Type 2 message bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            @Test
            @DisplayName("Should throw DcerpcException for invalid URL format")
            void testConstructor_InvalidUrl() {
                String invalidUrl = "invalid:server";
                assertThrows(DcerpcException.class, () -> new DcerpcPipeHandle(invalidUrl, mockContext, false),
                        "Should throw DcerpcException for invalid protocol");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            assertTrue(true);
        }
    
        @Test
        @DisplayName("Should handle invalid protocol ID length")
        void testInvalidProtocolIdLength() {
            // Protocol ID is a constant in transform header, not settable
            // Testing invalid protocol ID during decode instead
            byte[] invalidBuffer = new byte[52];
            // Write invalid protocol ID
            invalidBuffer[0] = 0x00;
            invalidBuffer[1] = 0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. cmd/bucket-handlers_test.go

    		secretKey          string
    		expectedContent    []byte
    		expectedRespStatus int
    	}{
    		// Test case - 0.
    		// Delete objects with invalid access key.
    		0: {
    			bucket:             bucketName,
    			objects:            successRequest0,
    			accessKey:          "Invalid-AccessID",
    			secretKey:          credentials.SecretKey,
    			expectedContent:    nil,
    			expectedRespStatus: http.StatusForbidden,
    		},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 39.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java

            Throwable cause = new IllegalStateException("Invalid state");
            CommandExecutionException exception = new CommandExecutionException(message, cause);
    
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
            assertEquals("Invalid state", exception.getCause().getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java

            assertTrue(exception instanceof java.io.Serializable);
        }
    
        public void test_nestedExceptions() {
            // Test nested exception handling
            Exception innerCause = new IllegalArgumentException("Invalid parameter");
            RuntimeException middleCause = new RuntimeException("Processing failed", innerCause);
            ThemeException exception = new ThemeException("Theme operation failed", middleCause);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacMacTest.java

            keys.put(PacSignature.ETYPE_ARCFOUR_HMAC, hmacKey);
    
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> PacMac.calculateMac(-1, keys, TEST_DATA)); // Invalid type
            assertEquals("Invalid MAC algorithm", e.getMessage());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            boolean result = transport.hasCapability(cap);
    
            assertEquals(cap >= 0, result);
            verify(transport, times(1)).hasCapability(cap);
        }
    
        // Invalid input: simulate underlying SmbException when capability check fails
        @Test
        @DisplayName("hasCapability throws SmbException when underlying error occurs")
        void hasCapability_throws() throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top