Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 351 for DisplayName (0.52 sec)

  1. 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)
  2. src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java

        }
    
        @Test
        @DisplayName("getResponse before initResponse returns null")
        void getResponseInitiallyNull() {
            SmbComNTCreateAndX req = createRequest(0, 0);
            assertNull(req.getResponse(), "Before init, response is null");
        }
    
        @Test
        @DisplayName("toString representation contains expected fields")
        void toStringContainsKeyData() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/HandlerTest.java

            }
        }
    
        @Test
        @DisplayName("getDefaultPort returns SMB default port 445")
        void testGetDefaultPort() {
            // Act
            int port = handler.getDefaultPort();
    
            // Assert
            assertEquals(445, port);
            assertEquals(SmbConstants.DEFAULT_PORT, port);
        }
    
        @Test
        @DisplayName("openConnection creates SmbFile for valid URL")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. 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)
  5. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

    import static org.mockito.Mockito.verifyNoMoreInteractions;
    import static org.mockito.Mockito.when;
    
    import java.lang.reflect.Method;
    import java.util.Arrays;
    
    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
    - 6.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

            assertEquals("remove", ex.getMessage());
        }
    
        @Nested
        @DisplayName("Invalid constructor inputs")
        class InvalidInputs {
            @Test
            @DisplayName("Null delegate causes NullPointerException during construction")
            void nullDelegate_throwsNPE() throws Exception {
                SmbFile parent = newParent();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/BufferCacheImplTest.java

        @Nested
        class InvalidConstruction {
            @Test
            @DisplayName("Negative maxBuffers throws immediately in constructor")
            void negativeMaxBuffersThrows() {
                assertThrows(NegativeArraySizeException.class, () -> new BufferCacheImpl(-1, 10));
            }
    
            @Test
            @DisplayName("Negative maxSize throws when allocating a new buffer")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K 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/context/CIFSContextCredentialWrapperTest.java

        }
    
        @Test
        @DisplayName("Should return the credentials provided in the constructor")
        void testGetCredentials() {
            assertEquals(mockCredentials, wrapper.getCredentials(), "getCredentials should return the initially set credentials");
        }
    
        @Test
        @DisplayName("Should renew credentials when they are renewable and renew() returns new credentials")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.util.ArrayList;
    import java.util.List;
    
    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.CsvSource;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top