- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 186 for getfile (0.08 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
// Validate parameter bytes using reflection since fields are private assertEquals(getField(cmd, "fid"), SMBUtil.readInt2(buffer, 0)); assertEquals(getField(cmd, "typeOfLock"), buffer[2]); assertEquals(getField(cmd, "newOpLockLevel"), buffer[3]); assertEquals(getField(cmd, "timeout"), (long) SMBUtil.readInt4(buffer, 4)); assertEquals(1, SMBUtil.readInt2(buffer, 8));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
String accountName = (String) getField(obj, "accountName"); String primaryDomain = (String) getField(obj, "primaryDomain"); // The actual implementation keeps lowercase for guest when Unicode is not enabled assertEquals("guest", accountName); assertEquals("DOM", primaryDomain); byte[] lm = (byte[]) getField(obj, "lmHash"); byte[] nt = (byte[]) getField(obj, "ntHash");
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/context/BaseContextTest.java
assertNotNull(resource, "Should create resource for URL: " + url); } } @Test @DisplayName("getPipe method should create SmbPipeResource") void testGetPipeResource() throws CIFSException { // When SmbPipeResource pipe = context.getPipe("smb://server/IPC$/pipe", 0); // Then assertNotNull(pipe, "Should create pipe resource");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
assertNotNull(cifsContextWrapper.getPipe(url, pipeType)); } @Test void testGetPipe_MalformedURLException() { // Test getPipe(String url, int pipeType) with a malformed URL String malformedUrl = "invalid-pipe-url"; int pipeType = 1; CIFSException thrown = assertThrows(CIFSException.class, () -> { cifsContextWrapper.getPipe(malformedUrl, pipeType); });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/UserLocalArtifactRepository.java
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
void testGetEndOfFile() { assertEquals(0, response.getEndOfFile()); } @Test @DisplayName("getSize should return same as getEndOfFile") void testGetSize() { assertEquals(response.getEndOfFile(), response.getSize()); } @Test @DisplayName("getFileAttributes should return initial value of 0") void testGetFileAttributes() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java
String existingContent = ""; // Try to read existing content try { FileObject inputFile = processingEnv.getFiler().getResource(StandardLocation.CLASS_OUTPUT, "", path); try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputFile.openInputStream()))) { String line;Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
when(mockTreeHandle.getSendBufferSize()).thenReturn(65536); when(mockFileHandle.isValid()).thenReturn(false, true); // First false to trigger ensureOpen, then true when(mockFileHandle.getFileId()).thenReturn(new byte[16]); when(mockFileHandle.acquire()).thenReturn(mockFileHandle); // Mock for ensureOpen to reopen file
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
@Mock SmbFileHandleImpl fileHandle; private SmbPipeOutputStream newStream() throws CIFSException { // Arrange common constructor collaborators to avoid touching network/state when(handle.getPipe()).thenReturn(pipe); when(tree.isSMB2()).thenReturn(true); when(tree.getSendBufferSize()).thenReturn(4096); // Act return new SmbPipeOutputStream(handle, tree); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
SmbInfoAllocation info = (SmbInfoAllocation) response.getInfo(); assertEquals(8L * 1000000L * 512L, info.getCapacity()); assertEquals(8L * 500000L * 512L, info.getFree()); } @Test void testReadDataWireFormat_FileFsSizeInformation() throws Exception { // Test reading FS_SIZE_INFO dataRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0)