Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 550 for sock (0.01 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.junit.jupiter.params.ParameterizedTest;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/SitemapsResponseProcessorTest.java

    import org.mockito.InjectMocks;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    /**
     * Test class for {@link SitemapsResponseProcessor}.
     */
    public class SitemapsResponseProcessorTest extends PlainTestCase {
    
        @InjectMocks
        private SitemapsResponseProcessor processor;
    
        @Mock
        private CrawlerContainer crawlerContainer;
    
        @Mock
        private SitemapsHelper sitemapsHelper;
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

        @Test
        @DisplayName("writeParametersWireFormat with mock request buffer")
        void testWriteParametersWireFormatWithMock() throws Exception {
            // Given
            String filename = "\\\\server\\share";
            trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, filename);
    
            // Mock the request buffer
            DfsReferralRequestBuffer mockRequest = mock(DfsReferralRequestBuffer.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/SequentialExecutor.java

        }
    
        /*
         * This is an unsynchronized read! After the read, the function returns immediately or acquires
         * the lock to check again. Since an IDLE state was observed inside the preceding synchronized
         * block, and reference field assignment is atomic, this may save reacquiring the lock when
         * another thread or the worker task has cleared the count and set the state.
         *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

        }
    
        /*
         * This is an unsynchronized read! After the read, the function returns immediately or acquires
         * the lock to check again. Since an IDLE state was observed inside the preceding synchronized
         * block, and reference field assignment is atomic, this may save reacquiring the lock when
         * another thread or the worker task has cleared the count and set the state.
         *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.Configuration;
    import jcifs.config.BaseConfiguration;
    import jcifs.internal.smb1.trans.SmbComTransaction;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Test class for NetServerEnum2
     */
    class NetServerEnum2Test {
    
        @Mock
        private Configuration mockConfig;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/StringsTest.java

    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.never;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.io.UnsupportedEncodingException;
    import java.nio.charset.StandardCharsets;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            CommonServerMessageBlockRequest next =
                    mock(CommonServerMessageBlockRequest.class, withSettings().extraInterfaces(RequestWithFileId.class));
    
            resp.prepare(next);
    
            verify((RequestWithFileId) next, times(1)).setFileId(eq(fileId));
        }
    
        @Test
        void prepare_doesNothing_whenNotReceived() {
            Configuration config = Mockito.mock(Configuration.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

            }
        }
    
        @Test
        public void testRdmaTransportCreationWithMockDelegate() throws Exception {
            // Create a mock SmbTransportInternal for RdmaTransport
            SmbTransportInternal mockTransport = mock(SmbTransportInternal.class);
            when(mockTransport.isDisconnected()).thenReturn(true);
            when(mockTransport.toString()).thenReturn("MockTransport");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

    import org.mockito.InOrder;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSException;
    import jcifs.SmbSession;
    
    /**
     * Tests for SmbTreeHandleInternal interface using Mockito to verify
     * interactions and observable behavior of collaborators.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbTreeHandleInternalTest {
    
        @Mock
        private SmbTreeHandleInternal handle;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top