Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 637 for sock (0.02 sec)

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

            }
        }
    
        @Nested
        @DisplayName("Mock Interaction Tests")
        class MockInteractionTests {
    
            @Test
            @DisplayName("Should interact with mock Info interface")
            void testMockInfoInteraction() {
                // Create a mock of the Info interface
                Info mockInfo = mock(Info.class);
    
                // Set up mock behavior
                when(mockInfo.getAttributes()).thenReturn(0x20);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbResourceTest.java

        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private SmbWatchHandle mockWatchHandle;
    
        @Mock
        private SmbRandomAccess mockRandomAccess;
    
        @Mock
        private InputStream mockInputStream;
    
        @Mock
        private OutputStream mockOutputStream;
    
        @Mock
        private CloseableIterator<SmbResource> mockIterator;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

    /**
     * Unit tests for DirectoryLeaseManager
     */
    public class DirectoryLeaseManagerTest {
    
        @Mock
        private CIFSContext context;
    
        @Mock
        private Configuration config;
    
        @Mock
        private LeaseManager baseLeaseManager;
    
        @Mock
        private SmbFile mockFile1;
    
        @Mock
        private SmbFile mockFile2;
    
        private DirectoryLeaseManager directoryLeaseManager;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/CIFSContextTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.net.URLStreamHandler;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Test class for CIFSContext interface functionality
     */
    @DisplayName("CIFSContext Tests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class SmbTreeConnectionTest {
    
        @Mock
        CIFSContext ctx;
    
        @Mock
        Configuration config;
    
        @Mock
        Credentials credentials;
    
        @Mock
        DfsResolver dfsResolver;
    
        private SmbTreeConnection newConn() {
            return new SmbTreeConnection(ctx) {
            };
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrCloseHandleTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.dcerpc.rpc.policy_handle;
    
    class MsrpcSamrCloseHandleTest {
    
        @Mock
        private policy_handle mockPolicyHandle;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSException;
    
    @ExtendWith(MockitoExtension.class)
    class SmbPipeOutputStreamTest {
    
        @Mock
        SmbPipeHandleImpl handle;
    
        @Mock
        SmbTreeHandleImpl tree;
    
        @Mock
        SmbNamedPipe pipe;
    
        @Mock
        SmbFileHandleImpl fileHandle;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/filter/WebApiFilterTest.java

            assertTrue(true);
        }
    
        // Test doFilter when WebApiManagerFactory returns null WebApiManager
        public void test_doFilter_withNullWebApiManager() throws IOException, ServletException {
            // Setup mock objects
            HttpServletRequest request = createMockHttpServletRequest();
            HttpServletResponse response = createMockHttpServletResponse();
            AtomicBoolean chainCalled = new AtomicBoolean(false);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 26.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * test with reference to the same "lock-like object", and then their interactions with that object
     * are choreographed via the various methods on this class.
     *
     * <p>A "lock-like object" is really any object that may be used for concurrency control. If the
     * {@link #callAndAssertBlocks} method is ever called in a test, the lock-like object must have a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

            public void start() {
                // Mock implementation
            }
    
            // Custom join method to avoid overriding final Thread.join()
            public void waitForCompletion(long millis) {
                // Mock implementation
            }
    
            @Override
            public String getOutput() {
                return output;
            }
        }
    
        // Mock Process implementation
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top