Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 761 for sock (0.02 sec)

  1. android/guava-tests/test/com/google/common/io/CloseablesTest.java

        // 'swallowException' when the mock does not throw an exception.
        setupCloseable(false);
        doClose(mockCloseable, false, false);
    
        setupCloseable(false);
        doClose(mockCloseable, true, false);
      }
    
      public void testClose_closeableWithEatenException() throws IOException {
        // make sure that no exception is thrown if 'swallowException' is true
        // when the mock does throw an exception.
        setupCloseable(true);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbTransportTest.java

    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    @ExtendWith(MockitoExtension.class)
    public class SmbTransportTest {
    
        @Mock
        private SmbTransport smbTransport;
    
        @Mock
        private CIFSContext cifsContext;
    
        @Mock
        private Address remoteAddress;
    
        @BeforeEach
        void setUp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. cmd/untar.go

    	r  io.Reader
    	mu sync.Mutex
    }
    
    func (d *disconnectReader) Read(p []byte) (n int, err error) {
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	if d.r != nil {
    		return d.r.Read(p)
    	}
    	return 0, errors.New("reader closed")
    }
    
    func (d *disconnectReader) Close() error {
    	d.mu.Lock()
    	d.r = nil
    	d.mu.Unlock()
    	return nil
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 6K bytes
    - Viewed (2)
  4. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

     */
    @ExtendWith(MockitoExtension.class)
    @DisplayName("DcerpcHandle Test Suite")
    class DcerpcHandleTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private DcerpcBinding mockBinding;
    
        @Mock
        private BufferCache mockBufferCache;
    
        @Mock
        private DcerpcSecurityProvider mockSecurityProvider;
    
        // Concrete implementation of DcerpcHandle for testing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java

                        // Mock implementation
                    }
                };
                ComponentUtil.register(mockProperties, "systemProperties");
    
                // Register mock system helper
                SystemHelper mockSystemHelper = new SystemHelper() {
                    @Override
                    public void updateSystemProperties() {
                        // Mock implementation
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K 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. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.Encodable;
    
    /**
     * Test class for Smb2IoctlRequest
     */
    @ExtendWith(MockitoExtension.class)
    class Smb2IoctlRequestTest {
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

    import jcifs.internal.smb1.trans2.Trans2FindNext2;
    
    @ExtendWith(MockitoExtension.class)
    class DirFileEntryEnumIterator1Test {
    
        @Mock
        SmbTreeHandleImpl tree;
        @Mock
        SmbResource parent;
        @Mock
        SmbResourceLocator locator;
        @Mock
        Configuration config;
    
        private static boolean handlerRegistered = false;
    
        // Register SMB URL handler once for all tests
        @BeforeAll
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

    package jcifs.smb1.dcerpc.ndr;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top