Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for acceptable (0.39 sec)

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

            byte[] emptyData = new byte[8];
    
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> new Pac(emptyData, keys));
            // Any PACDecodingException is acceptable for this test
            assertNotNull(e.getMessage());
        }
    
        @Test
        void testTooSmallPac() {
            // Test that PAC smaller than 8 bytes is rejected
            byte[] smallData = new byte[4];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ArchiveExtractorErrorHandlingTest.java

                assertNotNull("Content should not be null", result.getContent());
                // Empty or minimal content is acceptable for invalid archives
            } catch (final ExtractException e) {
                // Exception is also acceptable - verify it has a descriptive message
                assertTrue("Error message should mention TAR archive or extraction failure",
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            Subject first = orig.getSubject();
            // In test environments, getSubject() may return null if JAAS is not configured
            // This is acceptable behavior - the test should focus on the cloning logic
    
            // Clone and verify basic fields copied
            JAASAuthenticator copy = (JAASAuthenticator) orig.clone();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

                long skipped = sis.skip(10);
                // If it doesn't throw, it should only skip what's available
                assertEquals(3, skipped);
            } catch (IOException e) {
                // This is also acceptable behavior - skip may fail when it runs out of data
                assertTrue(e.getMessage().contains("unexpected EOF"));
            }
        }
    
        @Test
        @DisplayName("Keep-alive packets are transparently skipped")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            boolean deletionFailed = false;
            try {
                dirToDelete.delete();
                // Some SMB implementations may allow this, which is non-standard but acceptable for testing
                log.info("Non-empty directory deletion succeeded (non-standard behavior, but acceptable in Docker/Samba)");
            } catch (SmbException e) {
                // This is the expected behavior per SMB specification
                deletionFailed = true;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ExtractorResourceManagementTest.java

            } catch (final RuntimeException e) {
                // POI may throw IllegalArgumentException or other RuntimeExceptions
                // 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.
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            // Destroy the storage - may throw DestroyFailedException if SecretKey doesn't support destroy
            try {
                storage.destroy();
            } catch (DestroyFailedException e) {
                // This is acceptable - not all JVM implementations support destroying SecretKey
                // The important part is that the storage is marked as destroyed
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

            verify(filter).accept(resource);
            verify(resource).close();
        }
    
        @Test
        @DisplayName("Iterator with rejecting filter - finds next acceptable")
        void iteratorWithRejectingFilter() throws Exception {
            // Setup: first entry rejected, second accepted
            FileEntry entry1 = mock(FileEntry.class);
            FileEntry entry2 = mock(FileEntry.class);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/SystemHelper.java

         *
         * @return true if the CPU load is within the acceptable range, false otherwise.
         */
        public boolean calibrateCpuLoad() {
            return calibrateCpuLoad(0L);
        }
    
        /**
         * Calibrates the CPU load with a timeout.
         *
         * @param timeoutInMillis The timeout in milliseconds.
         * @return true if the CPU load is within the acceptable range, false otherwise.
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 08:30:43 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            // Given
            byte[] buffer = new byte[256];
    
            // Write structure size (4)
            SMBUtil.writeInt2(4, buffer, 0);
            // Write reserved field (any value is acceptable)
            buffer[2] = (byte) byte2;
            buffer[3] = (byte) byte3;
    
            // When
            int bytesRead = response.readBytesWireFormat(buffer, 0);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top