Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 725 for When (0.02 sec)

  1. src/test/java/jcifs/config/PropertyConfigurationTest.java

        void testEmptyProperties() throws CIFSException {
            // Given
            Properties emptyProps = new Properties();
    
            // When
            PropertyConfiguration emptyConfig = new PropertyConfiguration(emptyProps);
    
            // Then
            assertNotNull(emptyConfig);
            // Hostname may be null when not provided in properties
            // This is expected behavior
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                when(config.getPid()).thenReturn(12345);
    
                // When
                Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class);
                constructor.setAccessible(true);
                SmbComNtCancel cancel = constructor.newInstance(config, mid);
    
                // Then
                assertNotNull(cancel);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            SmbPipeInputStream stream = newStreamWithMinimalStubs(true);
    
            when(handle.ensureOpen()).thenReturn(fd);
            when(fd.getTree()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getConfig()).thenReturn(config);
            when(config.getTransactionBufferSize()).thenReturn(65535);
            when(tree.send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY))).thenThrow(new SmbException("boom"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/Kerb5ContextTest.java

        void getFlags_allFalse() {
            when(gssContext.getCredDelegState()).thenReturn(false);
            when(gssContext.getMutualAuthState()).thenReturn(false);
            when(gssContext.getReplayDetState()).thenReturn(false);
            when(gssContext.getSequenceDetState()).thenReturn(false);
            when(gssContext.getAnonymityState()).thenReturn(false);
            when(gssContext.getConfState()).thenReturn(false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

        void testConstructorWithNullFilename() {
            // When & Then
            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, null));
        }
    
        @Test
        @DisplayName("Constructor should handle empty filename")
        void testConstructorWithEmptyFilename() {
            // When & Then
            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, ""));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbSessionInternalTest.java

        void isInUse_variants(boolean inUse) {
            when(session.isInUse()).thenReturn(inUse);
    
            boolean result = session.isInUse();
    
            assertEquals(inUse, result);
            verify(session, times(1)).isInUse();
        }
    
        // Happy path + edge: getSessionKey returns bytes, empty and null
        @Test
        @DisplayName("getSessionKey returns bytes, empty, then null")
        void getSessionKey_variants() throws CIFSException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                when(mockChunk1.encode(any(byte[].class), anyInt())).thenReturn(CHUNK_SIZE);
                when(mockChunk2.encode(any(byte[].class), anyInt())).thenReturn(CHUNK_SIZE);
    
                SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, mockChunk1, mockChunk2);
                byte[] buffer = new byte[200];
    
                // When
                copy.encode(buffer, 0);
    
                // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbFileHandleTest.java

            when(smbFileHandle.isValid()).thenReturn(true);
            assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid.");
            verify(smbFileHandle, times(1)).isValid();
        }
    
        /**
         * Test isValid() when the handle is invalid.
         */
        @Test
        void testIsValid_whenInvalid() {
            when(smbFileHandle.isValid()).thenReturn(false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NtlmServletTest.java

            }
    
            when(cifsContext.getTransportPool()).thenReturn(transportPool);
            when(cifsContext.getNameServiceClient()).thenReturn(nameServiceClient);
            lenient().when(cifsContext.getConfig()).thenReturn(configuration);
            lenient().when(configuration.getDefaultDomain()).thenReturn("TEST_DOMAIN");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            SmbResourceLocator context2 = mock(SmbResourceLocator.class);
            when(context2.getShare()).thenReturn("share");
            when(context2.getDfsReferral()).thenReturn(null);
            when(context2.getUNCPath()).thenReturn("\\");
            when(context2.getURLPath()).thenReturn("/share/");
            when(context2.getServer()).thenReturn("server");
    
            base2.resolveInContext(context2, "sub/child");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
Back to top