Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 201 - 210 of 470 for asneeded (0.04 seconds)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

        }
    
        @Test
        @DisplayName("Test decode with larger buffer and length")
        void testDecodeWithLargerBufferAndLength() throws SMBProtocolDecodingException {
            // Test with buffer and length larger than needed
            byte[] buffer = new byte[100];
    
            // Fill test pattern
            for (int i = 0; i < buffer.length; i++) {
                buffer[i] = (byte) (i % 256);
            }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            pdis.readByte(); // position is 1
            pdis.align(4);
            assertEquals(1, pdis.available());
            assertEquals(0x05, pdis.readByte());
    
            // Test no alignment needed
            pdis = createInputStream(new byte[] { 0x01, 0x02, 0x03, 0x04 });
            pdis.readInt(); // position is 4
            pdis.align(4);
            assertEquals(0, pdis.available());
    
            // Test alignment with mask 0
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/ImmutableList.java

        if (length == 0) {
          return of();
        }
        return new RegularImmutableList<E>(elements, length);
      }
    
      ImmutableList() {}
    
      // This declaration is needed to make List.iterator() and
      // ImmutableCollection.iterator() consistent.
      @Override
      public UnmodifiableIterator<E> iterator() {
        return listIterator();
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/SmbTreeTest.java

        private SmbTree smbTree;
    
        @Mock
        private SmbTree mockWrappedTree;
    
        /**
         * Setup method executed before each test.
         */
        @BeforeEach
        void setUp() {
            // Common setup if needed
        }
    
        /**
         * Test for unwrap() method with matching type.
         * Verifies that unwrap returns the correct instance when the type matches.
         */
        @Test
        void testUnwrap_withMatchingType() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/util/IpAddressUtil.java

            }
            return url.toString();
        }
    
        /**
         * Builds a URL from protocol, hostname string, port, and path.
         * Properly handles IPv6 addresses by wrapping them in brackets if needed.
         *
         * @param protocol the protocol (e.g., "http", "https")
         * @param host the hostname or IP address string
         * @param port the port number
         * @param path the path (should start with "/" or be empty)
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 06 08:31:03 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java

            this.lifecycleDebugLogger = lifecycleDebugLogger;
            this.lifeCycleExecutionPlanCalculator = lifeCycleExecutionPlanCalculator;
            this.eventCatapult = eventCatapult;
        }
    
        /**
         * Ctor needed for UT.
         */
        BuilderCommon(
                LifecycleDebugLogger lifecycleDebugLogger,
                LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator,
                ExecutionEventCatapult eventCatapult,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

            @Test
            @DisplayName("Should handle response at end of buffer")
            void testResponseAtEndOfBuffer() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[20]; // Exact size needed
                SMBUtil.writeInt2(17, buffer, 0);
                SMBUtil.writeInt2(0, buffer, 2);
                SMBUtil.writeInt4(999, buffer, 4);
                SMBUtil.writeInt4(111, buffer, 8);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SSPContextTest.java

                when(mockCtx.supportsIntegrity()).thenReturn(true);
                when(mockCtx.calculateMIC(any(byte[].class))).thenReturn(new byte[] { 42 });
                // verifyMIC returns void; no stubbing needed
                when(mockCtx.isMICAvailable()).thenReturn(true);
    
                // Act
                useContext(mockCtx);
    
                // Assert: verify key interactions and ordering where meaningful
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.2K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/base/JoinerTest.java

    /**
     * Unit test for {@link Joiner}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @NullMarked
    public class JoinerTest extends TestCase {
      private static final Joiner J = Joiner.on("-");
    
      // <Integer> needed to prevent warning :(
      private static final Iterable<Integer> iterable = Arrays.<Integer>asList();
      private static final Iterable<Integer> iterable1 = Arrays.asList(1);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  10. tests/scanner_valuer_test.go

    		*data = []byte(s[3:])
    		return nil
    	}
    
    	return errors.New("Bytes expected")
    }
    
    func (data EncryptedData) Value() (driver.Value, error) {
    	if len(data) > 0 && data[0] == 'x' {
    		// needed to test failures
    		return nil, errors.New("Should not start with 'x'")
    	}
    
    	// prepend asterisks
    	return append([]byte("***"), data...), nil
    }
    
    type Num int64
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Click Count (0)
Back to Top