Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 201 - 210 of 1,891 for constructed (0.07 seconds)

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

            // When & Then: Constructor should throw SmbException
            SmbException exception = assertThrows(SmbException.class, () -> new NetServerEnumIterator(parent, treeHandle, "*", 0, null));
    
            assertTrue(exception.getMessage().contains("invalid"));
            verify(treeHandle, never()).acquire();
        }
    
        @Test
        @DisplayName("Constructor should handle null parent")
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java

    import jcifs.smb1.dcerpc.ndr.NdrObject;
    
    /**
     * Tests for {@link jcifs.smb1.dcerpc.msrpc.MsrpcSamrConnect2} constructor.
     * <p>
     * The class under test is a simple wrapper around the base class that
     * sets internal fields in its constructor.
     * These tests verify that the constructor accepts various parameters
     * without throwing exceptions.
     */
    @ExtendWith(MockitoExtension.class)
    class MsrpcSamrConnect2Test {
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java

            assertEquals(name, request.getRemoteUser());
            verify(mockPrincipal, times(1)).getName();
        }
    
        @Test
        @DisplayName("constructor accepts null principal")
        void testConstructorWithNullPrincipal(@Mock HttpServletRequest mockRequest) {
            // Constructor accepts null principal without throwing exception
            NtlmHttpServletRequest request = new NtlmHttpServletRequest(mockRequest, null);
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/dcerpc/rpc.java

         */
        public static class uuid_t extends NdrObject {
    
            /**
             * Default constructor for uuid_t.
             */
            public uuid_t() {
                // Default constructor
            }
    
            /**
             * The low field of the timestamp.
             */
            public int time_low;
            /**
             * The middle field of the timestamp.
             */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/curl/CurlTest.java

        @Test
        public void test_ProtectedConstructor() throws Exception {
            // ## Test that protected constructor can be accessed via reflection ##
    
            // ## Act ##
            final Constructor<Curl> constructor = Curl.class.getDeclaredConstructor();
            constructor.setAccessible(true);
            final Curl instance = constructor.newInstance();
    
            // ## Assert ##
            assertNotNull(instance);
        }
    
        @Test
    Created: Sat Dec 20 09:13:53 GMT 2025
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java

        }
    
        /**
         * LSA Quality of Service information.
         */
        public static class LsarQosInfo extends NdrObject {
    
            /**
             * Default constructor for LsarQosInfo.
             */
            public LsarQosInfo() {
                // Default constructor
            }
    
            /** Length of the QoS information. */
            public int length;
            /** Security impersonation level. */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 42.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.Test;
    
    import jcifs.Configuration;
    
    class AvSingleHostTest {
    
        /**
         * Test constructor AvSingleHost(byte[] raw).
         * Should correctly parse the raw bytes.
         */
        @Test
        void testAvSingleHostRawConstructor() {
            byte[] rawData = new byte[48]; // 8 (size/zero) + 8 (customData) + 32 (machineId)
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenDomainTest.java

            // Since SamrOpenDomain's constructor is called, we implicitly test that the arguments
            // are passed up. Mockito cannot directly verify super() calls without PowerMock,
            // which is not ideal for simple constructor tests.
            // The primary responsibility of this constructor is setting ptype and flags,
            // which are directly verifiable.
        }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  9. src/main/java/jcifs/CIFSException.java

        /**
         *
         */
        private static final long serialVersionUID = 7806460518865806784L;
    
        /**
         * Constructs a CIFS exception with no detail message.
         */
        public CIFSException() {
        }
    
        /**
         * Constructs a CIFS exception with the specified detail message and cause.
         *
         * @param message the detail message
         * @param cause the cause of this exception
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/pac/PacSidAttributesTest.java

        void testConstructor() {
            // Verify that the id and attributes are correctly set by the constructor
            assertEquals(sidMock, pacSidAttributes.getId(), "The SID should match the one provided in the constructor.");
            assertEquals(attributes, pacSidAttributes.getAttributes(), "The attributes should match the ones provided in the constructor.");
        }
    
        /**
         * Test method for {@link jcifs.pac.PacSidAttributes#getId()}.
         */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.6K bytes
    - Click Count (0)
Back to Top