Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 573 for isInvalid (0.06 sec)

  1. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

            }
        }
    
        public void test_statusCode_negativeValue() {
            // Test with negative status code
            int statusCode = -1;
            String message = "Invalid status";
    
            WebApiException exception = new WebApiException(statusCode, message);
    
            assertEquals(statusCode, exception.getStatusCode());
            assertEquals(message, exception.getMessage());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

            });
            assertTrue(e.getMessage().contains("PAC"));
        }
    
        // Test exception for invalid version
        @Test
        void testConstructorInvalidVersion() throws IOException {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            DataOutputStream dos = new DataOutputStream(baos);
    
            // Write header with invalid version
            dos.writeInt(Integer.reverseBytes(1)); // 1 buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/RequestParamTest.java

        }
    
        // Edge/Invalid: empty string is invalid for valueOf
        @ParameterizedTest
        @EmptySource
        @DisplayName("valueOf(\"\") throws IllegalArgumentException for empty input")
        void valueOfRejectsEmpty(String empty) {
            assertThrows(IllegalArgumentException.class, () -> RequestParam.valueOf(empty));
        }
    
        // Invalid: null is not allowed for valueOf
        @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)
  4. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbWatchHandle#watch()
         */
        @Override
        public List<FileNotifyInformation> watch() throws CIFSException {
            if (!this.handle.isValid()) {
                throw new SmbException("Watch was broken by tree disconnect");
            }
            try (SmbTreeHandleImpl th = this.handle.getTree()) {
    
                CommonServerMessageBlockRequest req;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       * should either throw an appropriate runtime exception or return a suitable replacement
       * character. It must never silently discard invalid input as this may constitute a security risk.
       *
       * @param cp the Unicode code point to escape if necessary
       * @return the replacement characters, or {@code null} if no escaping was needed
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/escape/UnicodeEscaper.java

       * should either throw an appropriate runtime exception or return a suitable replacement
       * character. It must never silently discard invalid input as this may constitute a security risk.
       *
       * @param cp the Unicode code point to escape if necessary
       * @return the replacement characters, or {@code null} if no escaping was needed
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/pager/ReqHeaderPager.java

         */
        public void setExistNextPage(final boolean existNextPage) {
            this.existNextPage = existNextPage;
        }
    
        /**
         * Gets the number of records to display per page.
         * If not set or invalid, returns the default page size.
         *
         * @return the page size
         */
        public int getPageSize() {
            if (pageSize <= 0) {
                pageSize = getDefaultPageSize();
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/LmhostsTest.java

            // Create a temporary lmhosts file with invalid IP formats
            File lmhostsFile = tempDir.resolve("lmhosts_invalid").toFile();
            try (FileWriter writer = new FileWriter(lmhostsFile)) {
                writer.write("192.168 HOST1\n"); // Invalid IP - missing 2 octets (should be skipped)
                writer.write("192.168.1.100 VALIDHOST\n");
                writer.write("not.an.ip HOST2\n"); // Invalid IP format
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        }
    
        @DisplayName("Should throw exception for invalid structure size")
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 2, 4, 8, 15, 17, 32, 64, 65535 })
        void testReadBytesWireFormatInvalidStructureSize(int structureSize) {
            // Given
            byte[] buffer = new byte[256];
            int offset = 0;
    
            // Write invalid structure size
            SMBUtil.writeInt2(structureSize, buffer, offset);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/curl/CurlRequestTest.java

            CurlRequest request = new CurlRequest(Method.GET, "https://example.com");
            request.encoding("INVALID-ENCODING");
    
            try {
                request.param("key", "value");
                fail("Expected CurlException for invalid encoding");
            } catch (CurlException e) {
                assertTrue(e.getMessage().contains("Invalid encoding"));
            }
        }
    
        @Test
        public void testFluentChaining() {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
Back to top