Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,751 for constructors (0.05 sec)

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

                JAASAuthenticator a = new JAASAuthenticator();
                // Provide a preset Subject so the getSubject() path uses the (serviceName, ps, this) constructor
                a.setSubject(new Subject());
                return a;
            }
            case WITH_CONFIG: {
                // Use the constructor that sets a StaticJAASConfiguration to exercise that branch
                return new JAASAuthenticator(new HashMap<String, String>(), "DOM", "user", "pass");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. 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.
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java

     */
    class KerberosTokenTest {
    
        /**
         * Test constructor with an empty token.
         */
        @Test
        void testConstructorWithEmptyToken() {
            byte[] emptyToken = new byte[0];
            assertThrows(PACDecodingException.class, () -> new KerberosToken(emptyToken));
        }
    
        /**
         * Test constructor with a malformed token (not ASN.1).
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

            assertEquals(positiveValue, ndrLongPositive.value, "Constructor should correctly initialize with a positive value.");
    
            // Test case 2: Negative value
            int negativeValue = -54321;
            NdrLong ndrLongNegative = new NdrLong(negativeValue);
            assertEquals(negativeValue, ndrLongNegative.value, "Constructor should correctly initialize with a negative value.");
    
            // Test case 3: Zero value
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            response = new Trans2SetFileInformationResponse(config);
        }
    
        @Test
        @DisplayName("Test constructor initializes object correctly")
        void testConstructor() {
            // Test that the constructor properly initializes the object
            assertNotNull(response);
            // The command is not set in the constructor, defaults to 0
            assertEquals(0, response.getCommand());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/MsrpcLsarCloseTest.java

            // Assert that the object is not null
            assertNotNull(msrpcLsarClose, "MsrpcLsarClose object should not be null");
    
            // Verify that the constructor correctly sets ptype and flags
            // These values are inherited from LsarClose, but MsrpcLsarClose sets them in its constructor
            assertEquals(0, msrpcLsarClose.getPtype(), "ptype should be 0");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java

        }
    
        @Override
        public void tearDown() throws Exception {
            crawlerEngineClient = null;
            super.tearDown();
        }
    
        // Test constructor
        public void test_constructor() {
            // Test that constructor creates a non-null instance
            assertNotNull(crawlerEngineClient);
        }
    
        // Test inheritance
        public void test_inheritance() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java

        public void test_constructorWithNullMessage() {
            // Test constructor with null message
            GsaConfigException exception = new GsaConfigException(null);
    
            assertNotNull(exception);
            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
    - 7.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            });
        }
    
        /**
         * Test TTL with different constructor types
         */
        @Test
        @DisplayName("Test TTL functionality works with all constructor types")
        public void testTTLWithDifferentConstructors() {
            // Test with String password constructor
            NtlmPasswordAuthenticator auth1 = new NtlmPasswordAuthenticator("user", "StringPass123!");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            verify(mockConfig).getTransactionBufferSize();
        }
    
        @Test
        @DisplayName("Test constructor with output buffer")
        void testConstructorWithOutputBuffer() {
            // This constructor doesn't use getTransactionBufferSize()
            Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE, TEST_FILE_ID, TEST_OUTPUT_BUFFER);
    
            assertNotNull(request);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top