Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 745 for Cock (0.02 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

        @Test
        void testLsarLookupSidsConstructorAndGetOpnum() {
            rpc.policy_handle mockHandle = mock(rpc.policy_handle.class);
            lsarpc.LsarSidArray mockSids = mock(lsarpc.LsarSidArray.class);
            lsarpc.LsarRefDomainList mockDomains = mock(lsarpc.LsarRefDomainList.class);
            lsarpc.LsarTransNameArray mockNames = mock(lsarpc.LsarTransNameArray.class);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 60.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * test with reference to the same "lock-like object", and then their interactions with that object
     * are choreographed via the various methods on this class.
     *
     * <p>A "lock-like object" is really any object that may be used for concurrency control. If the
     * {@link #callAndAssertBlocks} method is ever called in a test, the lock-like object must have a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

    class NameServiceClientImplTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private NetbiosAddress mockNetbiosAddress;
    
        @Mock
        private Address mockAddress;
    
        private NameServiceClientImpl nameServiceClient;
    
        @BeforeEach
        void setUp() throws UnknownHostException {
            // Configure mock context with fast timeouts
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. cmd/namespace-lock_test.go

    	}
    }
    
    // Test lock race
    func TestNSLockRace(t *testing.T) {
    	t.Skip("long test skip it")
    
    	ctx := t.Context()
    
    	for i := range 10000 {
    		nsLk := newNSLock(false)
    
    		// lk1; ref=1
    		if !nsLk.lock(ctx, "volume", "path", "source", "opsID", false, time.Second) {
    			t.Fatal("failed to acquire lock")
    		}
    
    		// lk2
    		lk2ch := make(chan struct{})
    		go func() {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java

         */
        @Test
        @DisplayName("Mock interaction example with SmbTransport")
        void mockTransportInteraction() {
            // Create a mock of SmbTransport from jcifs package
            jcifs.SmbTransport mock = mock(jcifs.SmbTransport.class);
            // Stub the getRemoteHostName method
            when(mock.getRemoteHostName()).thenReturn("test-host");
            // Verify the stubbing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/PacGroupTest.java

    import static org.mockito.Mockito.mock;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import jcifs.smb.SID;
    
    /**
     * Tests for the {@link PacGroup} class.
     */
    class PacGroupTest {
    
        private SID mockSid;
        private PacGroup pacGroup;
        private final int attributes = 42;
    
        @BeforeEach
        void setUp() {
            // Mock the SID object
            mockSid = mock(SID.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jakarta.servlet.http.HttpServletRequest;
    
    @ExtendWith(MockitoExtension.class)
    public class NtlmHttpServletRequestTest {
    
        @Test
        @DisplayName("constructor stores principal and delegates properly")
        void testHappyPath(@Mock HttpServletRequest mockRequest, @Mock Principal mockPrincipal) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java

        private SamrAliasHandle aliasHandle;
        private LsarSidArray sids;
    
        @BeforeEach
        void setUp() {
            // Create mock objects for the constructor parameters
            aliasHandle = mock(SamrAliasHandle.class);
            sids = mock(LsarSidArray.class);
        }
    
        /**
         * Test method for {@link jcifs.dcerpc.msrpc.MsrpcGetMembersInAlias#MsrpcGetMembersInAlias(SamrAliasHandle, LsarSidArray)}.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

      /** The timestamp of the last taken event, used to measure elapsed time between events. */
      private var lastTimestampNs: Long? = null
    
      /** Confirm that the thread does not hold a lock on `lock` during the callback. */
      fun forbidLock(lock: Any) {
        forbiddenLocks.add(lock)
      }
    
      /**
       * Removes recorded events up to (and including) an event is found whose class equals [eventClass]
       * and returns it.
       */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

      }
    
      /**
       * Invokes {@code lock.}{@link Lock#tryLock(long, TimeUnit) tryLock(timeout, unit)}
       * uninterruptibly.
       *
       * @since 30.0
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static boolean tryLockUninterruptibly(Lock lock, long timeout, TimeUnit unit) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
Back to top