Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 558 for isInvalid (0.07 sec)

  1. src/test/java/jcifs/config/PropertyConfigurationTest.java

        @Test
        @DisplayName("Should handle invalid property values gracefully")
        void testInvalidPropertyValues() throws CIFSException {
            // Given
            Properties props = new Properties();
            props.setProperty("jcifs.smb.client.connTimeout", "invalid");
            props.setProperty("jcifs.smb.client.useUnicode", "maybe");
    
            // When creating configuration with invalid number
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ExtractorResourceManagementTest.java

                // for invalid data, which is also acceptable
                assertNotNull("Exception message should not be null", e.getMessage());
            }
        }
    
        /**
         * Test that MsExcelExtractor throws appropriate exception for invalid data.
         * POI may throw various exceptions depending on the type of invalid data.
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/PacUnicodeStringTest.java

                pacString.check(testString);
            }, "A PACDecodingException should be thrown for a string with an invalid length.");
    
            // Verify the exception message
            String expectedMessage = "Invalid string length, expected 5, have 8";
            assertEquals(expectedMessage, exception.getMessage(), "The exception message is not correct.");
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ConfigTest.java

            testProperties.setProperty("test.invalid.int", "abc");
        }
    
        @Test
        @DisplayName("Should get integer property with default value")
        void testGetIntWithDefault() {
            assertEquals(123, Config.getInt(testProperties, "test.int", 0));
            assertEquals(456, Config.getInt(testProperties, "nonexistent.int", 456));
            assertEquals(789, Config.getInt(testProperties, "test.invalid.int", 789));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/SpnegoConstantsTest.java

                    () -> assertTrue(OID_PATTERN.matcher(SpnegoConstants.KERBEROS_MECHANISM).matches(), "Invalid OID: KERBEROS_MECHANISM"),
                    () -> assertTrue(OID_PATTERN.matcher(SpnegoConstants.LEGACY_KERBEROS_MECHANISM).matches(),
                            "Invalid OID: LEGACY_KERBEROS_MECHANISM"),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/RequestHeader.java

     * <p>Example usage:</p>
     * <pre>
     *     RequestHeader header = new RequestHeader("Content-Type", "application/json");
     *     String name = header.getName();
     *     String value = header.getValue();
     *     boolean isValid = header.isValid();
     * </pre>
     *
     * <p>Note: The name should not be blank and the value should not be null for the header to be considered valid.</p>
     *
     * @see java.io.Serializable
     */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SIDTest.java

            assertEquals(21, sid.sub_authority[0]);
            assertEquals(1, sid.sub_authority[1]);
        }
    
        /**
         * Test constructor with an invalid SID string.
         */
        @Test
        void testStringConstructorInvalidFormat() {
            assertThrows(SmbException.class, () -> new SID("invalid-sid"));
            assertThrows(SmbException.class, () -> new SID("S-1"));
        }
    
        /**
         * Test constructor with a byte array.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            // Test get(String url) with a malformed URL
            String malformedUrl = "invalid-url";
            CIFSException thrown = assertThrows(CIFSException.class, () -> {
                cifsContextWrapper.get(malformedUrl);
            });
            assertTrue(thrown.getMessage().contains("Invalid URL"));
            assertTrue(thrown.getCause() instanceof MalformedURLException);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java

            // Test GoodBot - should parse valid directives and ignore invalid ones
            assertNotNull(robotsTxt.getDirective("goodbot"));
            assertFalse(robotsTxt.allows("/admin/", "GoodBot"));
            assertTrue(robotsTxt.allows("/public/", "GoodBot"));
            // Invalid directives should not cause parsing to fail
    
            // Test crawl-delay with invalid values
            // Invalid number should be ignored, valid ones should work
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        @Test
        @DisplayName("Should handle invalid NetBIOS name quickly")
        @Timeout(value = 1, unit = TimeUnit.SECONDS) // Very short timeout
        void testGetNbtByNameInvalid() {
            // When/Then - Should fail quickly with invalid characters
            assertThrows(Exception.class, () -> {
                nameServiceClient.getNbtByName("INVALID@#$%NAME");
            }, "Should throw exception for invalid NetBIOS name");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top