Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 354 for displayName (0.06 sec)

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

            return new Handler(ctx);
        }
    
        @Test
        @DisplayName("getDefaultPort returns SMB default port")
        void testGetDefaultPort() {
            // Arrange
            Handler handler = newHandler();
            // Act & Assert
            assertEquals(SmbConstants.DEFAULT_PORT, handler.getDefaultPort(), "Default port should match SmbConstants");
        }
    
        @Test
        @DisplayName("openConnection returns SmbFile using provided CIFSContext")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

            when(mockContext.getConfig()).thenReturn(mockConfig);
            echoRequest = new Smb2EchoRequest(mockConfig);
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create echo request with correct command")
            void testConstructor() throws Exception {
                Smb2EchoRequest request = new Smb2EchoRequest(mockConfig);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/PacLogonInfoTest.java

        }
    
        @Test
        @DisplayName("Test parsing with invalid data size")
        void testInvalidDataSize() {
            byte[] tooSmall = new byte[10];
    
            PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacLogonInfo(tooSmall));
    
            assertEquals("Malformed PAC", exception.getMessage());
        }
    
        @Test
        @DisplayName("Test getters return expected values using mocks")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/util/HexdumpTest.java

    import java.io.PrintStream;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.params.ParameterizedTest;
    import org.junit.jupiter.params.provider.ValueSource;
    
    import jcifs.BaseTest;
    
    /**
     * Test class for jcifs.smb1.util.Hexdump utility functionality
     */
    @DisplayName("SMB1 Hexdump Utility Tests")
    class HexdumpTest extends BaseTest {
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

        }
    
        @Test
        @DisplayName("Test getResumeKey returns null before decode")
        void testGetResumeKeyBeforeDecode() {
            assertNull(response.getResumeKey(), "Resume key should be null before decode");
        }
    
        @Test
        @DisplayName("Test decode with all zero bytes")
        void testDecodeWithAllZeroBytes() throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/util/MimeMapTest.java

            }
        }
    
        @Nested
        @DisplayName("Constructor and initialization")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create MimeMap instance successfully")
            void testConstructor() {
                assertDoesNotThrow(() -> new MimeMap());
            }
    
            @Test
            @DisplayName("Should load mime.map resource properly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java

            }
        }
    
        @Test
        @DisplayName("MultiChannelManager should shutdown cleanly")
        void testShutdown() {
            assertDoesNotThrow(() -> {
                multiChannelManager.shutdown();
            });
        }
    
        @Test
        @DisplayName("createDefaultContext should work")
        void testCreateDefaultContext() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

            when(mockData.getDomain()).thenReturn("DOMAIN");
            return (DfsReferralDataImpl) base.combine(mockData);
        }
    
        @Nested
        @DisplayName("Interface Method Contract Tests")
        class InterfaceMethodTests {
    
            @Test
            @DisplayName("Should fixup host with FQDN")
            void testFixupHost() {
                String fqdn = "server.example.com";
    
                // Test with mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

            }
        }
    
        @Test
        @DisplayName("Constructor with andx sets next command")
        void testConstructorWithAndx() {
            DummyPlainSMB next = new DummyPlainSMB();
            DummyAndXBlock block = new DummyAndXBlock(next);
    
            assertNotNull(block);
            assertSame(next, block.andx, "andx should reference provided SMB");
        }
    
        @Test
        @DisplayName("getBatchLimit defaults to 0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    /**
     * Test class for SecurityInfo interface constants
     */
    class SecurityInfoTest {
    
        @Test
        @DisplayName("Test OWNER_SECURITY_INFO constant value")
        void testOwnerSecurityInfo() {
            assertEquals(0x1, SecurityInfo.OWNER_SECURITY_INFO);
        }
    
        @Test
        @DisplayName("Test GROUP_SECURITY_INFO constant value")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top