- Sort Score
- Result 10 results
- Languages All
Results 421 - 430 of 1,620 for whence (0.23 sec)
-
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
*/ @Test void testConstructor() { // Given String filename = "testFile.txt"; int informationLevel = 0x0100; // SMB_QUERY_FILE_BASIC_INFO // When Trans2QueryPathInformation trans = new Trans2QueryPathInformation(filename, informationLevel); // Then assertEquals(filename, trans.path, "The path should be set correctly.");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
} private TestDcerpcHandle handle; @BeforeEach void setUp() { // Setup buffer cache mocks with lenient stubbing lenient().when(mockContext.getBufferCache()).thenReturn(mockBufferCache); lenient().when(mockBufferCache.getBuffer()).thenReturn(new byte[8192]); handle = new TestDcerpcHandle(mockContext, mockBinding); } @NestedRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
when(ctx.getConfig()).thenReturn(config); when(config.getCapabilities()).thenReturn(0); when(config.getFlags2()).thenReturn(0); when(config.getMaxMpxCount()).thenReturn(1); when(config.getSendBufferSize()).thenReturn(4096); when(config.getReceiveBufferSize()).thenReturn(4096); when(config.getTransactionBufferSize()).thenReturn(4096);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
SmbTreeHandleImpl tree; private void stubValidTree(long treeId, boolean connected, boolean smb2) { lenient().when(tree.acquire()).thenReturn(tree); lenient().when(tree.getTreeId()).thenReturn(treeId); lenient().when(tree.isConnected()).thenReturn(connected); lenient().when(tree.isSMB2()).thenReturn(smb2); } @Test @DisplayName("Constructor with null tree throws NPE (byte[] fid variant)")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java
lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredNdrBuffer); lenient().when(mockDeferredNdrBuffer.derive(anyInt())).thenReturn(mockDeferredNdrBuffer); // Set up lenient stubs for common operations to avoid unnecessary stubbing exceptions lenient().when(mockNdrBuffer.getIndex()).thenReturn(0); lenient().when(mockDeferredNdrBuffer.getIndex()).thenReturn(0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 60.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
@Test @DisplayName("Should use special name when no expanded names") void testFromReferralWithSpecialName() { when(mockReferral.getTtl()).thenReturn(300); when(mockReferral.getRFlags()).thenReturn(Trans2GetDfsReferralResponse.FLAGS_NAME_LIST_REFERRAL); when(mockReferral.getExpandedNames()).thenReturn(new String[0]); when(mockReferral.getSpecialName()).thenReturn("\\SPECIAL");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
// Simulate granted credits when(mockResponse.getGrantedCredits()).thenReturn(100); assertEquals(100, mockResponse.getGrantedCredits()); // Verify the method was called verify(mockResponse, times(1)).getGrantedCredits(); } @Test void testGetErrorCode() { // Simulate error code when(mockResponse.getErrorCode()).thenReturn(-1);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
// Setup required for this test when(parent.getLocator()).thenReturn(locator); when(locator.getUNCPath()).thenReturn("\\\\server\\share\\dir\\"); when(tree.getConfig()).thenReturn(config); when(config.getMaximumBufferSize()).thenReturn(65535); when(config.getListSize()).thenReturn(65535);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
} } @BeforeEach void setUp() { lenient().when(fileEntry.getName()).thenReturn("test"); } @Test @DisplayName("Iterator without filter - simple case") void iteratorWithoutFilter() { // Setup: constructor calls advance() once when(delegate.hasNext()).thenReturn(true, false); when(delegate.next()).thenReturn(fileEntry);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
void testInterfaceMock() { // Given when(mockBasicFileInfo.getAttributes()).thenReturn(TEST_ATTRIBUTES); when(mockBasicFileInfo.getCreateTime()).thenReturn(TEST_CREATE_TIME); when(mockBasicFileInfo.getLastWriteTime()).thenReturn(TEST_LAST_WRITE_TIME); when(mockBasicFileInfo.getLastAccessTime()).thenReturn(TEST_LAST_ACCESS_TIME); when(mockBasicFileInfo.getSize()).thenReturn(1024L);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0)