Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 381 - 390 of 1,000 for sock (0.02 seconds)

  1. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            }
        }
    
        @Test
        @DisplayName("Mockito: verify renew() interaction and return value")
        void mockitoInteraction(@Mock CredentialsInternal returned, @Mock SmbRenewableCredentials renewable) {
            // Arrange: stub renew() to return a mocked CredentialsInternal
            when(renewable.renew()).thenReturn(returned);
    
            // Act: invoke renew()
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSException;
    import jcifs.DfsReferralData;
    import jcifs.SmbResourceLocator;
    
    @ExtendWith(MockitoExtension.class)
    public class SmbResourceLocatorInternalTest {
    
        @Mock
        SmbResourceLocatorInternal locator;
    
        @Mock
        SmbResourceLocator other;
    
        @Mock
        DfsReferralData referral;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  3. 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();
    
        private volatile @Nullable Supplier<T> delegate;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 21:24:28 GMT 2026
    - 16.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/hash/Striped64.java

       * needed.
       *
       * A single spinlock ("busy") is used for initializing and
       * resizing the table, as well as populating slots with new Cells.
       * There is no need for a blocking lock; when the lock is not
       * available, threads try other slots (or the base).  During these
       * retries, there is increased contention and reduced locality,
       * which is still better than alternatives.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 15 22:17:15 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.CIFSContext;
    import jcifs.DialectVersion;
    import jcifs.util.transport.Response;
    
    /**
     * Test class for SmbNegotiationResponse interface
     */
    class SmbNegotiationResponseTest {
    
        @Mock
        private SmbNegotiationResponse negotiationResponse;
    
        @Mock
        private CIFSContext cifsContext;
    
        @Mock
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImplTest.java

         * This test verifies the ArrayList implementation works correctly when
         * all access is properly synchronized via indexUpdateCallback lock.
         */
        @Test
        public void test_deleteUrlList_synchronizedAccess() throws Exception {
            // Create a mock IndexUpdateCallback for synchronization
            IndexUpdateCallback mockCallback = new IndexUpdateCallback() {
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 19.7K bytes
    - Click Count (0)
  7. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/AbstractContextAwareRuleSpecification.groovy

     */
    
    package gradlebuild.binarycompatibility.rules
    
    import japicmp.model.JApiClass
    import javassist.ClassPool
    import me.champeau.gradle.japicmp.report.ViolationCheckContext
    import spock.lang.Specification
    import spock.lang.TempDir
    
    abstract class AbstractContextAwareRuleSpecification extends Specification {
        @TempDir
        File testDir
    
        ViolationCheckContext context = new ViolationCheckContext() {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 2K bytes
    - Click Count (0)
  8. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/PreparePatchReleaseIntegrationTest.groovy

     * limitations under the License.
     */
    
    package gradlebuild.buildutils.tasks
    
    import gradlebuild.buildutils.model.ReleasedVersion
    import spock.lang.Specification
    import spock.lang.TempDir
    
    class PreparePatchReleaseIntegrationTest extends Specification {
    
        @TempDir
        File tmpDir
    
        def "version file is bumped and previous version is added to released versions"() {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  9. internal/dsync/locked_rand.go

    func (r *lockedRandSource) Int63() (n int64) {
    	r.lk.Lock()
    	n = r.src.Int63()
    	r.lk.Unlock()
    	return n
    }
    
    // Seed uses the provided seed value to initialize the generator to a
    // deterministic state.
    func (r *lockedRandSource) Seed(seed int64) {
    	r.lk.Lock()
    	r.src.Seed(seed)
    	r.lk.Unlock()
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/PreauthIntegrityTest.java

     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    public class PreauthIntegrityTest {
    
        @Mock
        private CIFSContext context;
    
        @Mock
        private Configuration config;
    
        @Mock
        private Address address;
    
        @Mock
        private Smb2NegotiateResponse negotiateResponse;
    
        private SmbTransportImpl transport;
    
        @BeforeEach
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 10.5K bytes
    - Click Count (0)
Back to Top