- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 2,385 for When (0.11 sec)
-
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, buffer.length, "Buffer should have correct size"); buffers.add(buffer); } // When - Release all buffers back for (byte[] buffer : buffers) { BufferCache.releaseBuffer(buffer); } // Then - Should be able to get buffers again
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
void mockReturnsConfiguredValues() { FileEntry mock = mock(FileEntry.class); when(mock.getName()).thenReturn("test.txt"); when(mock.getType()).thenReturn(1); when(mock.getAttributes()).thenReturn(128); when(mock.createTime()).thenReturn(1_500L); when(mock.lastModified()).thenReturn(1_800L); when(mock.length()).thenReturn(100L); assertEquals("test.txt", mock.getName());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtStatusTest.java
// When/Then assertEquals((int) 0x80000005L, infoStatus); // Should be an informational/warning status (0x8 prefix) assertTrue((infoStatus & (int) 0x80000000L) == (int) 0x80000000L); } @Test @DisplayName("Should handle pending status") void testPendingStatus() { // Given int pendingStatus = NtStatus.NT_STATUS_PENDING; // When/ThenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
SmbTransportImpl transport = mock(SmbTransportImpl.class); when(tree.isConnected()).thenReturn(true); when(tree.getSession()).thenReturn(session); when(tree.acquire(false)).thenReturn(tree); when(session.getTransport()).thenReturn(transport); when(transport.isDisconnected()).thenReturn(false); when(transport.getRemoteHostName()).thenReturn("host"); setTree(c, tree);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
when(mockNbtAddress.firstCalledName()).thenReturn("NBT_NAME"); assertEquals("NBT_NAME", uniAddress.firstCalledName()); verify(mockNbtAddress, times(1)).firstCalledName(); } @Test void shouldReturnSmbServerNameWhenInetAddressIsDotQuadIP() throws UnknownHostException { when(mockInetAddress.getHostName()).thenReturn("192.168.1.100");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
class SpnegoExceptionTest extends BaseTest { @Test @DisplayName("Should create SpnegoException with default constructor") void testDefaultConstructor() { // When SpnegoException ex = new SpnegoException(); // Then assertNotNull(ex, "Exception should be created"); assertNull(ex.getMessage(), "Default message should be null");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
// Given int sid = 0x2222; int resumeKey = 0x12345678; String filename = "dir\\pattern*"; // When Trans2FindNext2 next = new Trans2FindNext2(sid, resumeKey, filename); // Then assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, next.command, "Command must be SMB_COM_TRANSACTION2");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequest.java
/** * Notify when a directory name changes */ public static final int FILE_NOTIFY_CHANGE_DIR_NAME = 0x2; /** * Notify when file attributes change */ public static final int FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x4; /** * Notify when file size changes */ public static final int FILE_NOTIFY_CHANGE_SIZE = 0x8; /** * Notify when last write time changes */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/NotifyResponseTest.java
// Setup mock notify information when(mockNotifyInfo1.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED); when(mockNotifyInfo1.getFileName()).thenReturn("test1.txt"); when(mockNotifyInfo2.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_MODIFIED); when(mockNotifyInfo2.getFileName()).thenReturn("test2.txt"); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/amd64dynlinkerror.s
MOVQ R15, AX // ERROR "when dynamic linking, R15 is clobbered by a global variable access and is used here" RET TEXT ·a8(SB), 0, $0-0 CMPL runtime·writeBarrier(SB), $0 ADDQ AX, R15 // ERROR "when dynamic linking, R15 is clobbered by a global variable access and is used here" RET TEXT ·a9(SB), 0, $0-0 CMPL runtime·writeBarrier(SB), $0
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Mar 15 20:45:41 UTC 2023 - 4.8K bytes - Viewed (0)