Search Options

Results per page
Sort
Preferred Languages
Advance

Results 741 - 750 of 860 for setMap (0.04 sec)

  1. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

        @Mock
        private Configuration mockConfig;
    
        @Mock
        private NetbiosName mockCalledName;
    
        @Mock
        private NetbiosName mockCallingName;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockConfig.getNetbiosScope()).thenReturn(null);
            // Configure OEM encoding to avoid NullPointerException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/HandlerTest.java

    @ExtendWith(MockitoExtension.class)
    class HandlerTest {
    
        @Mock
        private CIFSContext mockCifsContext;
    
        private Handler handler;
    
        private Properties originalSystemProperties;
    
        @BeforeEach
        void setUp() throws Exception {
            // Backup system properties to restore them after each test
            originalSystemProperties = (Properties) System.getProperties().clone();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/ServerResponseValidatorTest.java

    import jcifs.smb.SmbException;
    
    /**
     * Test cases for ServerResponseValidator
     */
    public class ServerResponseValidatorTest {
    
        private ServerResponseValidator validator;
    
        @BeforeEach
        public void setUp() {
            validator = new ServerResponseValidator();
        }
    
        @Test
        public void testValidBuffer() throws Exception {
            byte[] buffer = new byte[1024];
            validator.validateBuffer(buffer, 100, 2048);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

        @Mock
        private DcerpcBinding mockBinding;
    
        @Mock
        private DcerpcHandle mockHandle;
    
        @Mock
        private NdrBuffer mockBuffer;
    
        private DcerpcBind bind;
    
        @BeforeEach
        void setUp() {
            bind = new DcerpcBind();
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

        return e
      }
    
      /**
       * Stops applying the timeout before the call is entirely complete. This is used for WebSockets
       * and duplex calls where the timeout only applies to the initial setup.
       */
      fun timeoutEarlyExit() {
        check(!timeoutEarlyExit)
        timeoutEarlyExit = true
        timeout.exit()
      }
    
      fun upgradeToSocket() {
        timeoutEarlyExit()
    
        withLock {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                buffer.putLong(counter);
                // Remaining bytes (if any) stay zero-padded
            }
    
            return nonce;
        }
    
        /**
         * Generate a secure random nonce for initial session setup.
         * This method can be used when enhanced randomness is required,
         * such as during initial key exchange or session establishment.
         *
         * @return randomized nonce appropriate for the dialect
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/LmhostsTest.java

     */
    class LmhostsTest {
    
        private Lmhosts lmhosts;
        private CIFSContext mockContext;
        private Configuration mockConfig;
    
        @TempDir
        Path tempDir;
    
        @BeforeEach
        void setUp() {
            lmhosts = new Lmhosts();
            mockContext = mock(CIFSContext.class);
            mockConfig = mock(Configuration.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    
    /**
     * Unit tests for ServerData class
     */
    public class ServerDataTest {
    
        private ServerData serverData;
    
        @BeforeEach
        public void setUp() {
            serverData = new ServerData();
        }
    
        /**
         * Test default constructor initializes all fields with default values
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

            @Override
            public void decode_out(NdrBuffer buf) throws NdrException {
                // Simulate decoding some data
                buf.dec_ndr_long();
            }
        }
    
        @BeforeEach
        void setUp() {
            message = new TestDcerpcMessage(10); // Example opnum
        }
    
        @Nested
        @DisplayName("Flag Management Tests")
        class FlagManagementTests {
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

     */
    class NtTransNotifyChangeResponseTest {
    
        @Mock
        private Configuration mockConfig;
    
        private NtTransNotifyChangeResponse response;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            response = new NtTransNotifyChangeResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor creates instance with empty notification list")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
Back to top