Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 69 for expectedSizes (0.31 sec)

  1. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            // size8 rounds up to nearest multiple of 8
            int expectedRawSize = Smb2Constants.SMB2_HEADER_LENGTH + 32 + 100;
            int expectedSize = (expectedRawSize + 7) & ~7; // Round up to nearest 8
            assertEquals(expectedSize, size);
        }
    
        @Test
        @DisplayName("Test writeBytesWireFormat method")
        void testWriteBytesWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/CompactHashMapTest.java

          assertThat(map.values).isNull();
    
          map.put(1, "1");
          assertThat(map.needsAllocArrays()).isFalse();
          int expectedSize = max(1, i);
          assertThat(map.entries).hasLength(expectedSize);
          assertThat(map.keys).hasLength(expectedSize);
          assertThat(map.values).hasLength(expectedSize);
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactHashMap.java

       *
       * @param expectedSize the initial capacity of this {@code CompactHashMap}.
       */
      CompactHashMap(int expectedSize) {
        init(expectedSize);
      }
    
      /** Pseudoconstructor for serialization support. */
      void init(int expectedSize) {
        Preconditions.checkArgument(expectedSize >= 0, "Expected size must be >= 0");
    
        // Save expectedSize for use in allocArrays()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

          map.put(1, Integer.toString(1));
          assertThat(map.needsAllocArrays()).isFalse();
          int expectedSize = max(1, i);
          assertThat(map.entries).hasLength(expectedSize);
          assertThat(map.keys).hasLength(expectedSize);
          assertThat(map.values).hasLength(expectedSize);
          assertThat(map.links).hasLength(expectedSize);
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            String pipeName = "TestPipe";
            FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName);
    
            // Verify size calculation
            int expectedSize = 14 + pipeName.getBytes(StandardCharsets.UTF_16LE).length;
            assertEquals(expectedSize, request.size());
        }
    
        @Test
        @DisplayName("Test constructor with name and timeout sets correct fields")
        void testConstructorWithNameAndTimeout() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            @DisplayName("Should calculate size correctly with no data")
            void testSizeWithNoData() {
                request.setData(new byte[0], 0, 0);
                int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 48 + 7) / 8) * 8;
                assertEquals(expectedSize, request.size());
            }
    
            @Test
            @DisplayName("Should calculate size correctly with data")
            void testSizeWithData() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

        void testSizeReturnsPositiveValue() {
            // Given
            int expectedSize = 1024;
            when(request.size()).thenReturn(expectedSize);
    
            // When
            int result = request.size();
    
            // Then
            assertEquals(expectedSize, result);
            verify(request, times(1)).size();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size correctly")
            void testSize() {
                int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 49 + 7) / 8) * 8;
                assertEquals(expectedSize, request.size());
            }
    
            @Test
            @DisplayName("Should align size to 8-byte boundary")
            void testSizeAlignment() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

       *     without resizing
       * @throws IllegalArgumentException if {@code expectedSize} is negative
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> HashSet<E> newHashSetWithExpectedSize(
          int expectedSize) {
        return new HashSet<>(Maps.capacity(expectedSize));
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/ServerResponseValidator.java

            }
    
            if (buffer.length < expectedSize) {
                failedValidations.incrementAndGet();
                bufferOverflowsPrevented.incrementAndGet();
                log.warn("Response buffer too small: {} < {}", buffer.length, expectedSize);
                throw new SmbException("Response buffer too small: " + buffer.length + " < " + expectedSize);
            }
    
            if (buffer.length > maxSize) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
Back to top