Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 353 for display_name (0.07 sec)

  1. 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)
  2. 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)
  3. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

        }
    
        @Test
        @DisplayName("Constructor with null cfg throws NPE")
        void constructor_nullCfg_throwsNPE() {
            stubValidTree(7L, true, true);
            assertThrows(NullPointerException.class, () -> new SmbFileHandleImpl(null, 42, tree, "//server/share", 0, 0, 0, 0, 0L));
        }
    
        @Test
        @DisplayName("getTree() acquires and returns same tree instance")
    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/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)
  5. 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)
  6. src/test/java/jcifs/CIFSContextTest.java

    import java.net.URLStreamHandler;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Test class for CIFSContext interface functionality
     */
    @DisplayName("CIFSContext Tests")
    class CIFSContextTest extends BaseTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Test
        @DisplayName("Should define interface methods")
        void testCIFSContextInterface() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  7. 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)
  8. src/test/java/jcifs/NetbiosNameTest.java

    import static org.mockito.Mockito.when;
    
    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 org.mockito.Mock;
    
    /**
     * Test class for NetbiosName interface functionality
     */
    @DisplayName("NetbiosName Tests")
    class NetbiosNameTest extends BaseTest {
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/transport/TransportTest.java

            }
        }
    
        @BeforeEach
        void setUp() {
            transport = new TestableTransport();
        }
    
        @Nested
        @DisplayName("Static utility method tests")
        class StaticMethodTests {
    
            @Test
            @DisplayName("readn should read specified number of bytes")
            void shouldReadSpecifiedBytes() throws IOException {
                byte[] data = "Hello World Test".getBytes();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

        }
    
        @Test
        @DisplayName("Constructor should initialize TransPeekNamedPipeResponse")
        void testConstructor() {
            // Assert
            assertNotNull(response);
            assertTrue(response instanceof SmbComTransactionResponse);
            assertEquals(0, response.getAvailable());
        }
    
        @Test
        @DisplayName("Should verify status constants are correctly defined")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top