Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 410 for Futimes (1.67 sec)

  1. src/test/java/jcifs/internal/RequestTest.java

            verify(request, times(1)).isResponseAsync();
            verify(request, times(1)).getNext();
            verify(request, times(1)).split();
            verify(request, times(1)).allowChain(nextRequest);
            verify(request, times(1)).createCancel();
            verify(request, times(1)).size();
            verify(request, times(1)).getOverrideTimeout();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileFilterTest.java

            assertFalse(filter.accept(smbFile), "Negative size should be rejected");
            verify(smbFile, times(1)).length();
    
            // zero size -> reject
            reset(smbFile);
            when(smbFile.length()).thenReturn(0L);
            assertFalse(filter.accept(smbFile), "Zero size should be rejected");
            verify(smbFile, times(1)).length();
    
            // positive size -> accept
            reset(smbFile);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbSessionInternalTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.ArgumentMatchers.anyString;
    import static org.mockito.ArgumentMatchers.eq;
    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/FileEntryTest.java

            // Verify precise interactions
            verify(mockEntry, times(1)).getName();
            verify(mockEntry, times(2)).getType();
            verify(mockEntry, times(1)).getAttributes();
            verify(mockEntry, times(1)).createTime();
            verify(mockEntry, times(1)).lastModified();
            verify(mockEntry, times(1)).lastAccess();
            verify(mockEntry, times(1)).length();
            verify(mockEntry, never()).getFileIndex();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/RequestWithPathTest.java

            requestWithPath.setResolveInDfs(true);
            verify(requestWithPath, times(1)).setResolveInDfs(true);
    
            doNothing().when(requestWithPath).setResolveInDfs(false);
            requestWithPath.setResolveInDfs(false);
            verify(requestWithPath, times(1)).setResolveInDfs(false);
    
            // Test with implementation
            testImplementation.setResolveInDfs(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SpnegoContextTest.java

            assertTrue(out.length > 0);
    
            // Verify interactions: flags and an empty optimistic token are used
            verify(this.mechContext, times(1)).getFlags();
            ArgumentCaptor<byte[]> cap = ArgumentCaptor.forClass(byte[].class);
            verify(this.mechContext, times(1)).initSecContext(cap.capture(), eq(0), eq(0));
            assertEquals(0, cap.getValue().length, "Optimistic token must be zero-length");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbCopyUtilTest.java

            // Verify that server-side path engaged at least the initial opens
            verify(src, times(1)).openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt());
            verify(dest, times(1)).openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt());
        }
    
        // --- WriterThread behavior ---
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            assertTrue(transport.isSMB2());
            assertFalse(transport.isSMB2());
            verify(transport, times(2)).isSMB2();
    
            doThrow(new SmbException("query failed")).when(transport).isSMB2();
            assertThrows(SmbException.class, () -> transport.isSMB2());
            verify(transport, times(3)).isSMB2();
        }
    
        // Inflight requests count including edge values
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            handle.close();
            verify(treeConnection, times(1)).release();
    
            // Second release -> usage 0 -> -1 triggers RuntimeCIFSException
            RuntimeCIFSException ex = assertThrows(RuntimeCIFSException.class, () -> handle.release());
            assertTrue(ex.getMessage().contains("below zero"));
            verify(treeConnection, times(1)).release(); // still only once
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

                assertNotNull(handle);
                // Verify that sendrecv was called with MsrpcSamrConnect4 and then MsrpcSamrConnect2
                verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrConnect4.class));
                verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrConnect2.class));
            }
        }
    
        @Test
        void testConstructor_OtherDcerpcException() throws DcerpcException, IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
Back to top