- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 228 for behaviors (1.45 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
oplockLevelField.set(notification, (byte) 0x01); // The implementation calls Hexdump.toHexString which throws NPE on null // This test verifies the actual behavior assertThrows(NullPointerException.class, () -> notification.toString()); } @ParameterizedTest @DisplayName("Should format different oplock levels correctly")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
assertEquals(3, FileSystemInformation.FS_SIZE_INFO); assertEquals(7, FileSystemInformation.FS_FULL_SIZE_INFO); } } @Nested @DisplayName("Mock Behavior Tests") class MockBehaviorTests { @Test @DisplayName("Should return mocked capacity value") void shouldReturnMockedCapacity() { // Given
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
} return null; }).when(cache).resolveSids0(any(), any(), any()); cache.resolveSids(ctx, null, arr, 2, 1); // resolve only s3 // Verify cache behavior - after reset, spying on the same cache won't work // Since we're working with internal state, we'll verify the side effects assertEquals("DOM", s1.getDomainName());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
} catch (SmbException e) { // Account locked out - this is expected behavior in concurrent scenario blockedAttempts.incrementAndGet(); break; // Stop trying if account is locked }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/ServerDataTest.java
assertEquals(16, serverData.guid.length); } /** * Test that modifying the original array affects the field (reference test) */ @Test @DisplayName("Test byte array reference behavior") public void testByteArrayReference() { // Given byte[] originalKey = new byte[] { 0x01, 0x02, 0x03, 0x04 }; serverData.encryptionKey = originalKey;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17K bytes - Viewed (0) -
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) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
assertEquals(0, SMBUtil.readInt2(buffer, 2)); // Reserved (4 bytes) - The implementation skips writing these bytes, // so they will have the initial pattern (0xCCCCCCCC) // This is expected behavior as seen in the implementation at line 131 assertEquals((byte) 0xCC, buffer[4]); assertEquals((byte) 0xCC, buffer[5]); assertEquals((byte) 0xCC, buffer[6]);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
// Since FLAGS2_RESOLVE_PATHS_IN_DFS is 0x1000, when cast to byte it becomes 0 // Therefore the method will always return false unless flags has all 0x00 bits set // This test verifies actual behavior testBlock.setFlags((byte) 0x00); assertFalse(testBlock.isResolveInDfs()); // The correct implementation should check flags2, not flagsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
copy.encode(buffer, startIndex); // Then // The implementation skips 4 reserved bytes without writing zeros // This is consistent with the actual implementation behavior // The reserved bytes remain as they were in the buffer for (int i = 0; i < 4; i++) { assertEquals((byte) 0xFF, buffer[startIndex + SOURCE_KEY_SIZE + 4 + i],
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/UniAddress.java
* <a href="../../resolver.html">Setting Name Resolution Properties</a> * and the <code>jcifs.smb1.resolveOrder</code> property. Changing * jCIFS name resolution properties can greatly affect the behavior of * the client and may be necessary for proper operation. * <p> * This class should be used in favor of {@code InetAddress} to resolve * hostnames on LANs and WANs that support a mixture of NetBIOS/WINS and
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0)