Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 760 for Cock (0.02 sec)

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

            // Create a mock policy_handle for each test
            mockHandle = mock(policy_handle.class);
        }
    
        /**
         * Test case for the {@link MsrpcLsarClose#MsrpcLsarClose(policy_handle)} constructor.
         * Verifies that the handle, ptype, and flags are correctly initialized.
         */
        @Test
        void testConstructor() {
            // Create an instance of MsrpcLsarClose with the mock handle
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Suppliers.java

          in.defaultReadObject();
          lock = new Object();
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    
      private static final class NonSerializableMemoizingSupplier<T extends @Nullable Object>
          implements Supplier<T> {
        private final Object lock = new Object();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

    class NodeStatusResponseTest {
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private NbtAddress mockQueryAddress;
    
        private NodeStatusResponse response;
    
        @BeforeEach
        void setUp() throws Exception {
            // Setup mock configuration with lenient stubbing
            lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8");
    
            // Setup mock query address
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

    class CIFSContextCredentialWrapperTest {
    
        @Mock
        private AbstractCIFSContext mockDelegate;
        @Mock
        private Credentials mockCredentials;
        @Mock
        private SmbRenewableCredentials mockRenewableCredentials;
        @Mock
        private CredentialsInternal mockRenewedCredentialsInternal;
        @Mock
        private NtlmAuthenticator mockNtlmAuthenticator;
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. cmd/callhome.go

    		return
    	}
    
    	go func() {
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		// Leader node (that successfully acquires the lock inside runCallhome)
    		// will keep performing the callhome. If the leader goes down for some reason,
    		// the lock will be released and another node will acquire it and take over
    		// because of this loop.
    		for {
    			if !globalCallhomeConfig.Enabled() {
    				return
    			}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/TestLogHandler.java

    @NullMarked
    public class TestLogHandler extends Handler {
      private final Object lock = new Object();
    
      /** We will keep a private list of all logged records */
      @GuardedBy("lock")
      private final List<LogRecord> list = new ArrayList<>();
    
      /** Adds the most recently logged record to our list. */
      @Override
      public void publish(@Nullable LogRecord record) {
        synchronized (lock) {
          if (record != null) {
            list.add(record);
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    class NdrLongTest {
    
        @Mock
        private NdrBuffer mockNdrBuffer;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. cmd/admin-heal-ops.go

    func (ahs *allHealState) setDiskHealingStatus(ep Endpoint, healing bool) {
    	ahs.Lock()
    	defer ahs.Unlock()
    
    	ahs.healLocalDisks[ep] = healing
    }
    
    func (ahs *allHealState) pushHealLocalDisks(healLocalDisks ...Endpoint) {
    	ahs.Lock()
    	defer ahs.Unlock()
    
    	for _, ep := range healLocalDisks {
    		ahs.healLocalDisks[ep] = false
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/CredentialsInternalTest.java

    import org.junit.jupiter.params.provider.MethodSource;
    import org.mockito.InOrder;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.Credentials;
    
    @ExtendWith(MockitoExtension.class)
    class CredentialsInternalTest {
    
        @Mock
        CIFSContext mockContext;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

        @BeforeEach
        public void setUp() {
            mockContext = Mockito.mock(CIFSContext.class);
            mockTransport = Mockito.mock(SmbTransportImpl.class);
            mockConfig = Mockito.mock(Configuration.class);
            mockCredentials = Mockito.mock(Credentials.class);
            mockCredentialsInternal = Mockito.mock(CredentialsInternal.class);
    
            Mockito.when(mockContext.getConfig()).thenReturn(mockConfig);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top