- Sort Score
- Result 10 results
- Languages All
Results 451 - 460 of 1,620 for whence (0.03 sec)
-
src/test/java/jcifs/internal/RequestTest.java
// Given when(request.isResponseAsync()).thenReturn(true); when(request.getNext()).thenReturn(nextRequest); when(request.split()).thenReturn(nextRequest); when(request.allowChain(nextRequest)).thenReturn(true); when(request.createCancel()).thenReturn(nextRequest); when(request.size()).thenReturn(1024); when(request.getOverrideTimeout()).thenReturn(5000);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
*/ @Test @DisplayName("Test constructor with mock configuration") public void testConstructorWithMockConfig() { // Setup mock to return a valid PID when(mockConfig.getPid()).thenReturn(1234); // When smbComTreeDisconnect = new SmbComTreeDisconnect(mockConfig); // Then assertNotNull(smbComTreeDisconnect);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
@BeforeEach void setup() { when(mockContext.getConfig()).thenReturn(mockConfig); when(mockNegotiate.getServerData()).thenReturn(new ServerDataStub()); } private void setupNegotiateStubs() { when(mockNegotiate.getNegotiatedCapabilities()).thenReturn(0x00123456); when(mockNegotiate.getNegotiatedSendBufferSize()).thenReturn(65535); when(mockNegotiate.getNegotiatedMpxCount()).thenReturn(65535);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
SMBUtil.writeInt2(4, buffer, 0); SMBUtil.writeInt2(0, buffer, 2); // When int bytesRead = response.readBytesWireFormat(buffer, 0); // Then assertEquals(4, bytesRead); } @Test @DisplayName("Should throw exception when buffer too small for reading") void testReadBytesWireFormatBufferTooSmall() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/EmptyIteratorTest.java
void testNextReturnsNull() { // When SmbResource result = emptyIterator.next(); // Then assertNull(result, "next() should return null for empty iterator"); } @Test @DisplayName("next should not throw NoSuchElementException") void testNextDoesNotThrowException() { // When & Then assertDoesNotThrow(() -> { emptyIterator.next();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
context = mock(CIFSContext.class); when(context.getConfig()).thenReturn(config); } /** * Test method for {@link jcifs.internal.smb1.com.SmbComClose#SmbComClose(jcifs.Configuration, int, long)}. */ @Test public void testConstructor() { // Given int fid = 123; long lastWriteTime = System.currentTimeMillis(); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/CredentialsTest.java
mockCredentials.isGuest(); }); } @Test @DisplayName("Should unwrap to correct type") void testUnwrap() { // Given when(mockCredentials.unwrap(Credentials.class)).thenReturn(mockCredentials); // When Credentials unwrapped = mockCredentials.unwrap(Credentials.class); // Then assertSame(mockCredentials, unwrapped);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
void testConstructorWithValidParameters() { // Given long sourceOffset = 1024L; long targetOffset = 2048L; int length = 4096; // When SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length); // Then assertNotNull(chunk); } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0)