Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,321 for Chen (0.03 sec)

  1. src/test/java/jcifs/https/HandlerTest.java

            void testConstructorWithNullContext() {
                // When
                Handler testHandler = new Handler(null);
    
                // Then
                assertNotNull(testHandler);
            }
    
            @Test
            @DisplayName("Should extend jcifs.http.Handler")
            void testInheritance() {
                // Then
                assertTrue(handler instanceof jcifs.http.Handler);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            // Given
            when(mockDelegate.isUseSMB2OnlyNegotiation()).thenReturn(true);
            when(mockDelegate.isRequireSecureNegotiate()).thenReturn(false);
            when(mockDelegate.isSendNTLMTargetName()).thenReturn(true);
            when(mockDelegate.isPort139FailoverEnabled()).thenReturn(false);
            when(mockDelegate.isDfsStrictView()).thenReturn(true);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        }
    
        @Test
        @DisplayName("Should return null for getService")
        void testGetService() {
            // When
            String service = response.getService();
    
            // Then
            assertNull(service);
        }
    
        @Test
        @DisplayName("Should prepare next request correctly when received")
        void testPrepareWhenReceived() throws Exception {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost);
            when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME);
            when(mockConfig.getDefaultDomain()).thenReturn(TEST_DOMAIN);
            when(mockConfig.isUseUnicode()).thenReturn(true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/context/BaseContextTest.java

            when(configWithCreds.getDefaultUsername()).thenReturn("testuser");
            when(configWithCreds.getDefaultPassword()).thenReturn("testpass");
            when(configWithCreds.getDefaultDomain()).thenReturn("TESTDOMAIN");
            when(configWithCreds.getBufferCacheSize()).thenReturn(16);
            when(configWithCreds.getMaximumBufferSize()).thenReturn(65536);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/StringsTest.java

                // When & Then - the implementation throws ArrayIndexOutOfBoundsException when buffer bounds are exceeded
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                    Strings.findUNITermination(bufferWithoutTermination, 0, bufferWithoutTermination.length);
                }, "Should throw ArrayIndexOutOfBoundsException when termination not found within bounds");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Setup default mock behaviors
            when(ctx.getConfig()).thenReturn(config);
            when(ctx.getNameServiceClient()).thenReturn(nameSvc);
            when(ctx.getCredentials()).thenReturn(creds);
            when(ctx.getTransportPool()).thenReturn(pool);
    
            // Default config values
            when(config.getLocalAddr()).thenReturn(null);
            when(config.getLocalPort()).thenReturn(0);
            when(config.getSessionLimit()).thenReturn(10);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

            }
        }
    
        @BeforeEach
        void setUp() throws Exception {
            parent = mock(SmbFile.class);
            when(parent.getLocator()).thenReturn(locator);
            when(treeHandle.getConfig()).thenReturn(config);
            when(treeHandle.acquire()).thenReturn(treeHandle);
            when(treeHandle.getOEMDomainName()).thenReturn("TESTDOMAIN");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/BufferCacheTest.java

            doNothing().when(mockBufferCache).releaseBuffer(buffer);
    
            // When & Then
            assertDoesNotThrow(() -> {
                mockBufferCache.releaseBuffer(buffer);
            }, "releaseBuffer should handle valid buffers");
        }
    
        @Test
        @DisplayName("getBuffer should return buffers for use")
        void testGetBufferBasicUsage() {
            // When
            byte[] buffer1 = testCache.getBuffer();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/HexdumpTest.java

            // When
            String result = Hexdump.toHexString(data);
    
            // Then
            assertNotNull(result);
            assertEquals("000FFF7F80", result);
        }
    
        @Test
        @DisplayName("Should handle empty byte array")
        void testToHexStringEmpty() {
            // Given
            byte[] data = {};
    
            // When
            String result = Hexdump.toHexString(data);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
Back to top