Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,618 for constructors (0.09 sec)

  1. 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()}.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/JobProcessingExceptionTest.java

            // Test constructor with null cause
            final JobProcessingException exception = new JobProcessingException((Throwable) null);
    
            assertNotNull(exception);
            assertNull(exception.getCause());
            assertNull(exception.getMessage());
        }
    
        public void test_constructor_withNullMessageAndCause() {
            // Test constructor with null message and cause
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/ThumbnailGenerationExceptionTest.java

        public void test_constructorWithNullMessage() {
            // Test constructor with null message
            ThumbnailGenerationException exception = new ThumbnailGenerationException(null);
    
            assertNull(exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_constructorWithNullMessageAndCause() {
            // Test constructor with null message and null cause
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/av/AvPairTest.java

            byte[] raw = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            AvPair avPair = new AvPair(type, raw);
    
            assertEquals(type, avPair.getType(), "Type should match the constructor argument.");
            assertArrayEquals(raw, avPair.getRaw(), "Raw data should match the constructor argument.");
    
            // Test with another type and empty raw data
            int type2 = AvPair.MsvAvEOL;
            byte[] raw2 = new byte[] {};
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K 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/org/codelibs/fess/exception/SsoProcessExceptionTest.java

            // Test constructor with message only
            String message = "SSO authentication failed";
            SsoProcessException exception = new SsoProcessException(message);
    
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_constructor_withMessageAndCause() {
            // Test constructor with message and Exception cause
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top