Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 725 for When (0.47 sec)

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

            when(mockConfig.getNetbiosLocalAddress()).thenReturn(InetAddress.getByName("127.0.0.1"));
            when(mockConfig.getBroadcastAddress()).thenReturn(InetAddress.getByName("255.255.255.255"));
            when(mockConfig.getNetbiosSndBufSize()).thenReturn(576);
            when(mockConfig.getNetbiosRcvBufSize()).thenReturn(576);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/DfsReferralDataTest.java

            when(mockReferralData.getShare()).thenReturn(share);
    
            // When
            String result = mockReferralData.getShare();
    
            // Then
            assertEquals(share, result);
            verify(mockReferralData).getShare();
        }
    
        @Test
        @DisplayName("Should get path consumed")
        void testGetPathConsumed() {
            // Given
            int pathConsumed = 10;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/NetbiosNameTest.java

            // Given
            when(mockNetbiosName.getNameType()).thenReturn(nameType);
    
            // When
            int result = mockNetbiosName.getNameType();
    
            // Then
            assertEquals(nameType, result);
        }
    
        @Test
        @DisplayName("Should handle null name")
        void testNullName() {
            // Given
            when(mockNetbiosName.getName()).thenReturn(null);
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/CIFSContextTest.java

            // When
            mockContext.close();
    
            // Then
            verify(mockContext).close();
        }
    
        @Test
        @DisplayName("Should get Configuration")
        void testGetConfig() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/AddressTest.java

        }
    
        @Test
        @DisplayName("unwrap method should return correct type when supported")
        void testUnwrapMethodContract() throws Exception {
            // Given
            when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress);
    
            // When & Then
            Address unwrapped = mockAddress.unwrap(Address.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

        void testConstructor() {
            // Given
            Configuration config = mock(Configuration.class);
            when(config.getNotifyBufferSize()).thenReturn(8192);
    
            // When
            Smb2ChangeNotifyRequest req = new Smb2ChangeNotifyRequest(config, testFileId);
    
            // Then
            assertNotNull(req);
            assertTrue(req instanceof ServerMessageBlock2Request);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        void testGetCipherId() {
            // When
            int cipherId = encryptionContext.getCipherId();
    
            // Then
            assertEquals(1, cipherId, "Should return the cipher ID set in constructor");
        }
    
        @Test
        @DisplayName("Should return correct dialect version")
        void testGetDialect() {
            // When
            DialectVersion dialect = encryptionContext.getDialect();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

        void setUp() {
            lenient().when(mockFileEntry1.getName()).thenReturn("file1.txt");
            lenient().when(mockFileEntry2.getName()).thenReturn("file2.txt");
            lenient().when(mockFileEntry3.getName()).thenReturn("file3.txt");
    
            lenient().when(mockResource1.getName()).thenReturn("file1.txt");
            lenient().when(mockResource2.getName()).thenReturn("file2.txt");
            lenient().when(mockResource3.getName()).thenReturn("file3.txt");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                NdrBuffer decodeBuffer = mock(NdrBuffer.class);
                when(decodeBuffer.dec_ndr_short()).thenReturn(originalValue);
    
                // When: Encoding then decoding
                ndrShort1.encode(encodeBuffer);
    
                NdrShort ndrShort2 = new NdrShort(0);
                ndrShort2.decode(decodeBuffer);
    
                // Then: Values should match
                verify(encodeBuffer).enc_ndr_short(originalValue);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top