Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 354 for displayName (0.08 sec)

  1. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            response = new NetShareEnumResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Test constructor with configuration")
        void testConstructor() {
            assertNotNull(response);
            // Response is successfully created with configuration
            assertTrue(response instanceof NetShareEnumResponse);
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat returns 0")
        void testWriteSetupWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.verifyNoMoreInteractions;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.junit.jupiter.params.ParameterizedTest;
    import org.junit.jupiter.params.provider.ValueSource;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

        }
    
        @Test
        @DisplayName("Test default constructor creates instance with null values")
        void testDefaultConstructor() {
            assertNotNull(notifyInfo);
            assertEquals(0, notifyInfo.getAction());
            assertNull(notifyInfo.getFileName());
            assertEquals(0, notifyInfo.getNextEntryOffset());
        }
    
        @Test
        @DisplayName("Test constructor with buffer decodes correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

            assertNotNull(request);
        }
    
        @Test
        @DisplayName("Constructor should handle null filename")
        void testConstructorWithNullFilename() {
            // When & Then
            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, null));
        }
    
        @Test
        @DisplayName("Constructor should handle empty filename")
        void testConstructorWithEmptyFilename() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/NegTokenTargTest.java

    import org.bouncycastle.asn1.ASN1ObjectIdentifier;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    /**
     * Unit tests for {@link NegTokenTarg}. The class has no external
     * collaborators so tests are mostly focused on round‑trip
     * serialisation and invalid input handling.
     */
    class NegTokenTargTest {
    
        @Test
        @DisplayName("happy path – full token round‑trip")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

        }
    
        @Test
        @DisplayName("Test default constructor creates valid instance")
        void testDefaultConstructor() {
            // Verify instance is created
            assertNotNull(fileInfo);
            assertEquals(FileInformation.FILE_ENDOFFILE_INFO, fileInfo.getFileInformationLevel());
        }
    
        @Test
        @DisplayName("Test parameterized constructor with end of file value")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

        private static final int CHUNK_SIZE = 24;
    
        @Mock
        private SrvCopychunk mockChunk;
    
        @BeforeEach
        void setUp() {
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create instance with source key and single chunk")
            void testConstructorWithSingleChunk() {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            });
        }
    
        @Test
        @DisplayName("getPipeType and getPipe delegate to SmbNamedPipe")
        void pipeType_and_getPipe() {
            when(pipe.getPipeType()).thenReturn(12345);
            SmbPipeHandleImpl handle = new SmbPipeHandleImpl(pipe);
            assertEquals(12345, handle.getPipeType());
            assertSame(pipe, handle.getPipe());
        }
    
        @Test
        @DisplayName("isOpen/isStale reflect handle validity and lifecycle")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

    /**
     * Test class for SmbComNtCancel
     *
     * Tests the SMB1 NT Cancel command implementation
     */
    @DisplayName("SmbComNtCancel Tests")
    class SmbComNtCancelTest {
    
        private static final byte SMB_COM_NT_CANCEL = (byte) 0xA4;
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            private Configuration mockConfig;
    
            @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

        }
    
        @Test
        @DisplayName("Test readBytesWireFormat returns 0")
        void testReadBytesWireFormat() {
            request = new Smb2QueryDirectoryRequest(mockConfig);
            byte[] buffer = new byte[100];
    
            int bytesRead = request.readBytesWireFormat(buffer, 0);
    
            assertEquals(0, bytesRead);
        }
    
        @Test
        @DisplayName("Test size calculation with different buffer sizes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
Back to top