Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for gracefully (0.06 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

        void testReadMethodsWithNullBuffer() {
            trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            // All read methods should handle null buffer gracefully by returning 0
            assertEquals(0, trans2QueryFSInfo.readSetupWireFormat(null, 0, 0));
            assertEquals(0, trans2QueryFSInfo.readParametersWireFormat(null, 0, 0));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

        void testReadMethodsWithNullBuffer() {
            trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo);
    
            // All read methods should handle null buffer gracefully
            assertEquals(0, trans2SetFileInfo.readSetupWireFormat(null, 0, 0));
            assertEquals(0, trans2SetFileInfo.readParametersWireFormat(null, 0, 0));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Then
            assertEquals(0, bytesWritten);
            assertArrayEquals(originalBuffer, buffer); // Buffer should remain unchanged
        }
    
        @Test
        @DisplayName("Should handle null configuration gracefully")
        void testNullConfiguration() {
            // When - constructor accepts null config without throwing
            Smb2ReadResponse responseWithNull = new Smb2ReadResponse(null, outputBuffer, outputBufferOffset);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            SMBUtil.writeInt4(8, buffer, notifyOffset + 8);
            System.arraycopy("test".getBytes("UnicodeLittleUnmarked"), 0, buffer, notifyOffset + 12, 8);
    
            // When & Then - should handle gracefully
            assertThrows(Exception.class, () -> {
                response.readBytesWireFormat(buffer, offset);
            });
        }
    
        @Test
        @DisplayName("Should verify NotifyResponse interface implementation")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            // Closing should send a single Smb2CloseRequest
            it.close();
            verify(tree).send(argThat((Request<?> r) -> r instanceof Smb2CloseRequest));
        }
    
        @Test
        @DisplayName("open() gracefully handles NT_STATUS_NO_SUCH_FILE (empty listing)")
        void open_handles_no_such_file_and_yields_empty() throws Exception {
            // Setup required for this test
            when(parent.getLocator()).thenReturn(locator);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                byte[] shortFileId = new byte[8];
                Arrays.fill(shortFileId, (byte) 0xAB);
                request.setFileId(shortFileId);
    
                byte[] buffer = new byte[256];
    
                // Should handle gracefully or throw appropriate exception
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> request.writeBytesWireFormat(buffer, 0));
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            assertEquals(24, SMBUtil.readInt2(buffer, 0));
            assertEquals(testFlags, SMBUtil.readInt2(buffer, 2));
        }
    
        @Test
        @DisplayName("writeBytesWireFormat with null file ID should handle gracefully")
        void testWriteBytesWireFormatWithNullFileId() {
            Smb2CloseRequest requestWithNull = new Smb2CloseRequest(mockConfig, null, testFileName);
            byte[] buffer = new byte[256];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

        }
    
        /**
         * Test remove method with non-existing type
         */
        @Test
        @DisplayName("Remove should handle non-existing type gracefully")
        void testRemoveNonExisting() {
            List<AvPair> pairs = new LinkedList<>();
            AvTimestamp timestamp = new AvTimestamp(new byte[8]);
            pairs.add(timestamp);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/TreeConnectResponseTest.java

         * Tests for edge cases and error conditions
         */
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle null configuration gracefully")
            void testNullConfiguration() {
                // When & Then - Should not throw exception
                assertDoesNotThrow(() -> {
                    new Smb2TreeConnectResponse(null);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertNotNull(item.getTimestamp());
            assertNotNull(item.getId());
        }
    
        @Test
        public void testConstructorWithNullArrays() {
            // Test constructor handles null arrays gracefully
            String[] text = { "text" };
            String[][] readings = { { "reading" } };
    
            SuggestItem item = new SuggestItem(text, readings, null, 0L, 0L, 1.0f, null, null, null, SuggestItem.Kind.DOCUMENT);
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
Back to top