Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 314 for CASE (1.76 sec)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                assertArrayEquals(name.getBytes(StandardCharsets.UTF_8), mock.getName());
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle large buffer decoding")
            void testLargeBufferDecode() throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NameQueryResponseTest.java

        }
    
        @Test
        void toString_shouldReturnExpectedFormat_withNullAddrEntry() throws NoSuchFieldException, IllegalAccessException {
            // Set 'addrEntry' field to null for this test case
            Field addrEntryField = NameServicePacket.class.getDeclaredField("addrEntry");
            addrEntryField.setAccessible(true);
            addrEntryField.set(nameQueryResponse, null);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            if (expectEqual) {
                assertEquals(hA, hB);
                assertEquals(hA.hashCode(), hB.hashCode());
            } else {
                assertNotEquals(hA, hB);
            }
    
            // Test negative case with different tree id handles
            SmbTreeHandleImpl tC = mock(SmbTreeHandleImpl.class);
            lenient().when(tC.acquire()).thenReturn(tC);
            lenient().when(tC.getTreeId()).thenReturn(treeId + 1);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                assertEquals((chunkCount - 1) * 100, SMBUtil.readInt4(buffer, offset + 16));
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle source key with all zeros")
            void testSourceKeyAllZeros() {
                // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                String result = notification.toString();
                assertTrue(result.contains("oplockLevel=" + oplockLevel));
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle minimum valid buffer size")
            void testMinimumBufferSize() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            assertEquals(1, pairs.size(), "Should have one pair");
            assertTrue(pairs.get(0) instanceof AvChannelBindings, "Should be AvChannelBindings instance");
        }
    
        /**
         * Test edge case with maximum data size
         */
        @Test
        @DisplayName("Handle large data size")
        void testLargeDataSize() throws CIFSException {
            // Create a large data array
            byte[] largeData = new byte[1024];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

                SMBUtil.writeInt4(chunkBytes, buffer, 4);
                SMBUtil.writeInt4(totalBytes, buffer, 8);
                return buffer;
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle maximum values")
            void testMaximumValues() throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        @DisplayName("readPacketType with special stream returning -1 should return -1")
        void testReadPacketTypeSpecialStream() throws IOException {
            // Create a mock stream that returns exactly -1 on first read (special case)
            when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(-1); // Immediate EOF
    
            byte[] buffer = new byte[10];
    
            // The readn method will return 0 when stream returns -1
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            channel.updateActivity();
        }
    
        private void discoverInterfaces() {
            if (!multiChannelEnabled)
                return;
    
            // Periodically rediscover interfaces in case of network changes
            discoverLocalInterfaces();
    
            try {
                queryRemoteInterfaces();
            } catch (Exception e) {
                log.debug("Failed to query remote interfaces", e);
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  10. 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top