Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 637 for sock (0.02 sec)

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

        }
    
        @Test
        @DisplayName("constructor with mock andx properly sets andx field")
        void constructorWithMockAndx() {
            // Create a mock ServerMessageBlock
            ServerMessageBlock mockAndx = mock(ServerMessageBlock.class);
            mockAndx.command = (byte) 0x2E; // Set a different command value (e.g., SMB_COM_READ_ANDX)
    
            // Create SmbComLogoffAndX with the mock
            SmbComLogoffAndX msg = new SmbComLogoffAndX(mockAndx);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

                buffer[i] = (byte) i;
            }
    
            // Mock end of file (8 bytes)
            for (int i = 8; i < 16; i++) {
                buffer[i] = (byte) (i * 2);
            }
    
            // Mock number of links (4 bytes)
            buffer[16] = 0x01;
            buffer[17] = 0x00;
            buffer[18] = 0x00;
            buffer[19] = 0x00;
    
            // Mock delete pending and directory flags
            buffer[20] = 0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java

            // during the process, though we can't directly test the lock state
    
            // When
            try {
                curtainBeforeHook.processDBFluteSystem();
    
                // Then - if we get here without exception, the unlock/lock worked
                DfFinalTimeZoneProvider provider = getDBFluteSystemTimeZoneProvider();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbSessionInternalTest.java

     * method contracts, checked exceptions, and interactions with collaborators.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbSessionInternalTest {
    
        @Mock
        private SmbSessionInternal session;
    
        @Mock
        private SmbTransport transport;
    
        @Mock
        private SmbTree tree;
    
        @BeforeEach
        void resetMocks() {
            Mockito.reset(session, transport, tree);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

     * scenarios that don't require complex filter setups.
     */
    @ExtendWith(MockitoExtension.class)
    class DirFileEntryAdapterIteratorTest {
    
        @Mock
        private SmbResource mockParent;
    
        @Mock
        private CloseableIterator<FileEntry> mockDelegate;
    
        @Mock
        private ResourceFilter mockFilter;
    
        @Mock
        private FileEntry mockFileEntry1;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class ChannelManagerTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private SmbSession mockSession;
    
        @Mock
        private SmbTransport mockTransport;
    
        @Mock
        private CommonServerMessageBlock mockMessage;
    
        private ChannelManager channelManager;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    
    /**
     * Integration tests for witness protocol implementation.
     * Uses mock services to simulate witness behavior.
     */
    @ExtendWith(MockitoExtension.class)
    public class WitnessIntegrationTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java

            SmbFile file = mock(SmbFile.class);
            when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL);
            assertTrue(filter.accept(file), "Attributes match should be accepted");
            verify(file, times(1)).getAttributes();
        }
    
        @Test
        public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception {
            SmbFile file = mock(SmbFile.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/CloseableIteratorTest.java

    import static org.mockito.Mockito.verify;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Test class for CloseableIterator interface functionality
     */
    @DisplayName("CloseableIterator Tests")
    class CloseableIteratorTest extends BaseTest {
    
        @Mock
        private CloseableIterator<SmbResource> mockIterator;
    
        @Test
        @DisplayName("Should define close method")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 964 bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/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.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jan 15 22:17:15 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top