Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for constructions (1.2 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                assertEquals(128, new NdrShort(-128).value); // -128 & 0xFF = 128
            }
    
            @Test
            @DisplayName("Should maintain value consistency after multiple constructions")
            void testValueConsistency() {
                // Given: Same input value
                int inputValue = 1000;
                int expectedMasked = inputValue & 0xFF; // 232
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            assertNotNull(ex.toString(), "toString should be non-null");
            ex.getMessage(); // don't assert content to avoid implementation assumptions
    
            // Verify no interactions happened with the mocked cause during construction/access
            verifyNoInteractions(mockCause);
        }
    
        @Test
        @DisplayName("Cause-only constructor with null: null cause maintained")
        void causeOnlyConstructor_acceptsNull() {
            // Arrange & Act
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

            return Stream.of(Arguments.of((String) null), Arguments.of(""));
        }
    
        /**
         * Validate message+cause constructor and that no interaction with cause occurs during construction.
         */
        @Test
        @DisplayName("String+Throwable ctor: sets message, cause and unsuccessful status")
        void messageAndCauseConstructor_setsFields(@Mock Throwable mockCause) {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/HandlerTest.java

            // Act & Assert
            assertThrows(NullPointerException.class, () -> handler.openConnection(null), "Null URL should throw NPE");
            verify(mockCtx, never()).getConfig(); // no interaction expected on failure before construction
        }
    
        @Test
        @DisplayName("openConnection uses SingletonContext when no context provided")
        void testOpenConnection_UsesSingletonContext() throws Exception {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/Traverser.java

        /**
         * Returns <code>true</code> if the class file corresponding to the specified class name exists in the resources handled by this instance.
         * <p>
         * If a root package is specified at instance construction, the specified class name is interpreted as a relative name from the root package.
         * </p>
         *
         * @param className the class name
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

        }
    
        @Nested
        @DisplayName("Invalid constructor inputs")
        class InvalidInputs {
            @Test
            @DisplayName("Null delegate causes NullPointerException during construction")
            void nullDelegate_throwsNPE() throws Exception {
                SmbFile parent = newParent();
                assertThrows(NullPointerException.class, () -> new ShareEnumIterator(parent, null, null));
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

        // Test successful PAC creation with mocked Pac construction
        @Test
        void testConstructorSuccess() throws PACDecodingException {
            // Setup key
            byte[] keyBytes = new byte[32];
            KerberosKey kdcKey = new KerberosKey(null, keyBytes, PacSignature.HMAC_SHA1_96_AES256, 1);
            keys.put(PacSignature.ETYPE_AES256_CTS_HMAC_SHA1_96, kdcKey);
    
            // Mock Pac construction to bypass complex validation
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/Maps.java

        /**
         * Returns a {@literal Maps} for constructing a {@link Map} with the specified key and value.
         *
         * @param <KEY> the key type of the <code>Map</code>
         * @param <VALUE> the value type of the <code>Map</code>
         * @param key the key to be added to the <code>Map</code>
         * @param value the value to be added to the <code>Map</code>
         * @return a {@literal Maps} for constructing a {@link Map} with the specified key and value
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java

            // Note: Mockito cannot directly verify super constructor calls.
            // We assume if the object is created, the super constructor was called.
            // We can verify the state of the object after construction.
    
            // Verify ptype and flags are set correctly
            assertEquals(0, policy.getPtype(), "ptype should be 0");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/dict/mapping/CharMappingCreator.java

         */
        public CharMappingCreator() {
            super("mapping.*\\.txt");
        }
    
        /**
         * Registers this creator with the dictionary manager after construction.
         */
        @PostConstruct
        public void register() {
            if (logger.isInfoEnabled()) {
                logger.info("Loaded {}", this.getClass().getSimpleName());
            }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 1.9K bytes
    - Viewed (0)
Back to top