- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 689 for WHEN (0.26 sec)
-
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
when(readResponse.getFlags2()).thenReturn(SmbConstants.FLAGS2_SECURITY_SIGNATURES); when(readResponse.getSignSeq()).thenReturn(10); when(readResponse.getCommand()).thenReturn((int) ServerMessageBlock.SMB_COM_READ_ANDX); when(readResponse.getLength()).thenReturn(100); when(readResponse.getDataLength()).thenReturn(50); when(readResponse.getData()).thenReturn(readData);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
// Set up mock behaviors when(mockContext.getConfig()).thenReturn(mockConfig); when(mockContext.getCredentials()).thenReturn(mockCredentials); when(mockContext.getTransportPool()).thenReturn(mockTransportPool); when(mockConfig.getDfsTtl()).thenReturn(300L); // Mock transport to throw IOException - simulating connection failureRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
rpc.uuid_t uuid = new rpc.uuid_t(); // Mock the NdrBuffer responses for decoding when(mockNdrBuffer.dec_ndr_long()).thenReturn(0x12345678); when(mockNdrBuffer.dec_ndr_short()).thenReturn((int) (short) 0x9ABC, (int) (short) 0xDEF0); when(mockNdrBuffer.dec_ndr_small()).thenReturn((int) (byte) 0x11, (int) (byte) 0x22, // clock seq bytes
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/NameServiceClientTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.net.InetAddress; import java.net.UnknownHostException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
// When int result = response.writeBytesWireFormat(dst, 0); // Then assertEquals(0, result); } @Test @DisplayName("Should return 0 with null array") void testWriteBytesWireFormatWithNullArray() { // Given byte[] dst = null; // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
long asyncId = 67890L; // When Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, mid, asyncId); // Then assertEquals(SMB2_CANCEL, request.getCommand()); assertEquals(mid, request.getMid()); assertEquals(asyncId, request.getAsyncId()); assertTrue((request.getFlags() & SMB2_FLAGS_ASYNC_COMMAND) != 0, "Async flag should be set when asyncId is non-zero"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
@Test @DisplayName("Test constructor initializes fields correctly") void testConstructorInitialization() { // Given int offset = 0; int length = TEST_DATA.length; // When transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, offset, length); // Then assertNotNull(transCallNamedPipe);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
when(mockConfig.isDfsDisabled()).thenReturn(false); when(mockConfig.isEncryptionEnabled()).thenReturn(true); when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB202); when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311); when(mockConfig.getMachineId()).thenReturn(testMachineId); when(mockConfig.getRandom()).thenReturn(mockRandom);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
// Setup default mock behaviors when(ctx.getConfig()).thenReturn(config); when(ctx.getNameServiceClient()).thenReturn(nameSvc); when(ctx.getCredentials()).thenReturn(creds); when(ctx.getTransportPool()).thenReturn(pool); // Default config values when(config.getLocalAddr()).thenReturn(null); when(config.getLocalPort()).thenReturn(0); when(config.getSessionLimit()).thenReturn(10);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0)