Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,291 for Constructors (0.08 sec)

  1. src/test/java/jcifs/pac/PacGroupTest.java

         */
        @Test
        void testConstructor() {
            // Verify that the constructor correctly sets the id and attributes
            assertEquals(mockSid, pacGroup.getId(), "The SID should be correctly set in the constructor.");
            assertEquals(attributes, pacGroup.getAttributes(), "The attributes should be correctly set in the constructor.");
        }
    
        /**
         * Test method for {@link jcifs.pac.PacGroup#getId()}.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/ClassUtil.java

         *            The parameter types array
         * @return The {@link Constructor} object for the {@code public} constructor matching the specified {@code argTypes}
         * @throws NoSuchConstructorRuntimeException
         *             If a matching constructor is not found
         * @see Class#getConstructor(Class...)
         */
        public static <T> Constructor<T> getConstructor(final Class<T> clazz, final Class<?>... argTypes)
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/ApiResult.java

            /** The status code of the response. */
            protected int status;
    
            /**
             * Default constructor for ApiResponse.
             */
            public ApiResponse() {
                // Default constructor
            }
    
            /**
             * Sets the status of the response.
             * @param status The status to set.
             * @return This ApiResponse instance.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/transport/TransportExceptionTest.java

    /**
     * Test class for TransportException
     */
    public class TransportExceptionTest {
    
        @Test
        @DisplayName("Test default constructor creates exception with null message")
        public void testDefaultConstructor() {
            // Create exception with default constructor
            TransportException exception = new TransportException();
    
            // Verify the exception is created and has no message
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java

        @BeforeEach
        void setUp() {
            // Create mock objects for the constructor parameters
            aliasHandle = mock(SamrAliasHandle.class);
            sids = mock(LsarSidArray.class);
        }
    
        /**
         * Test method for {@link jcifs.dcerpc.msrpc.MsrpcGetMembersInAlias#MsrpcGetMembersInAlias(SamrAliasHandle, LsarSidArray)}.
         * Verifies that the constructor correctly initializes the object's fields using reflection for protected members.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbNamedPipeTest.java

        // Creates a minimal valid CIFS context that does not perform I/O by itself
        private CIFSContext ctx() {
            return SingletonContext.getInstance();
        }
    
        @Nested
        @DisplayName("Constructor behavior")
        class ConstructorTests {
    
            @ParameterizedTest
            @DisplayName("Accepts IPC$ URLs (happy path)")
            @ValueSource(strings = { "smb://server/IPC$/foo", "smb://server/IPC$/PIPE/foo" })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

        @MethodSource("messages")
        @DisplayName("Message constructor preserves provided messages, including null/edge cases")
        void messageConstructor_preservesMessage(String msg) {
            // Arrange & Act
            SmbUnsupportedOperationException ex = new SmbUnsupportedOperationException(msg);
    
            // Assert
            assertEquals(msg, ex.getMessage(), "Constructor should preserve the provided message (including null)");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SIDTest.java

            s.sub_authority = Arrays.copyOf(subs, subs.length);
            return s;
        }
    
        @Nested
        @DisplayName("Basic Constructor and Utility Tests")
        class BasicTests {
    
            @Test
            @DisplayName("Textual constructor happy path and toString consistency")
            void testTextualConstructorAndToString() throws Exception {
                // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java

            // Although we cannot directly verify the super constructor call with Mockito for a real class,
            // we can infer its correct behavior if the object is successfully constructed and its own fields are correct.
            // The super constructor is called with (domainHandle, 0, acct_flags, null, 0)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  10. 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);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top