Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,200 for constructor (0.09 sec)

  1. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            SMBProtocolDecodingException ex = new SMBProtocolDecodingException();
    
            // Assert state
            assertNull(ex.getMessage(), "Default constructor should have null message");
            assertNull(ex.getCause(), "Default constructor should have null cause");
            assertTrue(ex instanceof CIFSException, "Should be a CIFSException subtype");
    
            // Assert throwing/catching behavior with assertThrows
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

            assertEquals(expectedStatus, ex.getNtStatus(), "status should map based on code");
            assertNull(ex.getCause(), "cause must be null for int constructor");
            assertNull(ex.getRootCause(), "rootCause must be null for int constructor");
        }
    
        /**
         * Validate message-only constructor with both null and empty messages.
         */
        @ParameterizedTest
        @MethodSource("messageProvider")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

        @Test
        @DisplayName("Default constructor should create exception with null message and cause")
        void testDefaultConstructor() {
            // Given & When
            CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException();
    
            // Then
            assertNull(exception.getMessage(), "Default constructor should have null message");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/ConstructorUtil.java

            }
        }
    
        /**
         * Returns whether the constructor is <code>public</code>.
         *
         * @param constructor the constructor (must not be {@literal null} or empty string)
         * @return whether the constructor is <code>public</code>
         */
        public static boolean isPublic(final Constructor<?> constructor) {
            assertArgumentNotNull("constructor", constructor);
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java

            // Then
            // Verify that the super constructor is called with correct arguments
            // Note: Directly verifying super constructor calls is not straightforward in JUnit/Mockito.
            // We verify the effects of the super constructor by checking the fields of the created object.
    
            // Assert object_attributes fields
    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/org/codelibs/fess/exception/SearchQueryExceptionTest.java

            // Test constructor with null message
            SearchQueryException exception = new SearchQueryException((String) null);
    
            assertNull(exception.getMessage());
            assertNull(exception.getCause());
            assertTrue(exception instanceof FessSystemException);
        }
    
        public void test_constructorWithNullCause() {
            // Test constructor with null cause
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

            // Test constructor with message only
            String message = "Test exception message";
            FessSystemException exception = new FessSystemException(message);
    
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_constructor_withMessageAndCause() {
            // Test constructor with message and cause
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java

        @Mock
        private NdrObject mockNdrObject;
    
        /**
         * Test the constructor of MsrpcQueryInformationPolicy.
         * It should correctly call the super constructor and set ptype and flags.
         */
        @Test
        @DisplayName("Constructor should initialize fields and call super constructor")
        void constructorTest() {
            short level = 1;
    
            // Create an instance of the class under test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

    class PACDecodingExceptionTest {
    
        /**
         * Test the default constructor.
         */
        @Test
        void testDefaultConstructor() {
            PACDecodingException e = new PACDecodingException();
            // Expect null message and null cause
            assertNull(e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a message.
         */
        @Test
        void testMessageConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/beans/ConstructorDesc.java

        /**
         * Returns the constructor.
         *
         * @param <T>
         *            The type of the Bean
         * @return The constructor
         */
        <T> Constructor<T> getConstructor();
    
        /**
         * Returns an array of the parameter types of the constructor.
         *
         * @return An array of the parameter types of the constructor
         */
        Class<?>[] getParameterTypes();
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.5K bytes
    - Viewed (0)
Back to top