Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 787 for sock (0.01 sec)

  1. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

    @MockitoSettings(strictness = Strictness.LENIENT)
    class ChannelFailoverTest {
    
        @Mock
        private ChannelManager mockChannelManager;
    
        @Mock
        private ChannelLoadBalancer mockLoadBalancer;
    
        @Mock
        private SmbTransport mockTransport;
    
        @Mock
        private SmbTransport mockNewTransport;
    
        @Mock
        private CommonServerMessageBlock mockOperation;
    
        private ChannelFailover failover;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/RequestWithPathTest.java

    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Test class for RequestWithPath interface
     */
    @ExtendWith(MockitoExtension.class)
    class RequestWithPathTest {
    
        @Mock
        private RequestWithPath requestWithPath;
    
        private TestRequestWithPath testImplementation;
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

        private LeaseManager leaseManager;
        private CIFSContext mockContext;
        private Configuration mockConfig;
    
        @BeforeEach
        void setUp() {
            mockContext = mock(CIFSContext.class);
            mockConfig = mock(Configuration.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockConfig.getLeaseTimeout()).thenReturn(30000);
            when(mockConfig.getMaxLeases()).thenReturn(1000);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTransportInternalTest.java

        @Mock
        private jcifs.CIFSContext ctx;
    
        @Mock
        private SmbSession session;
    
        @Mock
        private jcifs.DfsReferralData referral;
    
        @BeforeEach
        void resetMocks() {
            Mockito.reset(transport, ctx, session, referral);
        }
    
        // Happy path: hasCapability returns based on provided capability codes
        @ParameterizedTest
        @DisplayName("hasCapability returns expected values for various caps")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/InfoTest.java

    import static org.mockito.Mockito.mock;
    
    import java.util.Date;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Unit tests for the {@link Info} implementations used by the SMB1
     * protocol handling code.
     */
    class InfoTest {
    
        // A tiny mock to illustrate Mockito interaction patterns.
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/JobHelperTest.java

                // Mock implementation that doesn't require client
                entity.setLastUpdated(System.currentTimeMillis());
            }
    
            @Override
            public void update(JobLog entity) {
                // Mock implementation that doesn't require client
                entity.setLastUpdated(System.currentTimeMillis());
            }
        }
    
        // Simple mock class without complex interface requirements
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

     * heavy network interactions through {@link SmbTransport}.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbSessionTest {
    
        @Mock
        UniAddress addr;
        @Mock
        InetAddress inet;
        NtlmPasswordAuthentication auth;
        @Mock
        SmbTransport transport;
    
        // static helper that returns the mocked transport. The real class
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. misc/ios/go_ios_exec.go

    var tmpdir string
    
    var (
    	devID    string
    	appID    string
    	teamID   string
    	bundleID string
    	deviceID string
    )
    
    // lock is a file lock to serialize iOS runs. It is global to avoid the
    // garbage collector finalizing it, closing the file and releasing the
    // lock prematurely.
    var lock *os.File
    
    func main() {
    	log.SetFlags(0)
    	log.SetPrefix("go_ios_exec: ")
    	if debug {
    		log.Println(strings.Join(os.Args, " "))
    	}
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jun 18 16:32:49 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. 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)
  10. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    public class SmbComSessionSetupAndXTest {
    
        @Mock
        private CIFSContext mockContext;
        @Mock
        private SmbComNegotiateResponse mockNegotiate;
        @Mock
        private ServerMessageBlock mockAndX;
        @Mock
        private Configuration mockConfig;
    
        private static byte[] blobCred() {
            return "blobdata".getBytes(StandardCharsets.UTF_8);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top