Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 69 for expectedSizes (0.07 sec)

  1. src/test/java/jcifs/smb1/util/HexdumpTest.java

            assertNotNull(output);
            assertTrue(output.contains("00000:"));
    
            // Calculate expected number of lines
            int expectedLines = (size + 15) / 16;
            String[] lines = output.split(System.getProperty("line.separator"));
            assertTrue(lines.length >= expectedLines);
        }
    
        @Test
        @DisplayName("Should handle hexdump with offset")
        void testHexdumpWithOffset() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            SMBUtil.writeInt4(fileSize, buffer, 6);
    
            response.readParameterWordsWireFormat(buffer, 0);
    
            // File size is stored as signed int
            long expectedSize = (int) fileSize;
            assertEquals(expectedSize, response.getSize());
        }
    
        @Test
        void testFileSizeOverflow() {
            // Test file size that overflows signed int
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

       * @throws ClassCastException if a data element has the wrong type
       */
      protected abstract Table<String, Integer, C> create(@Nullable Object... data);
    
      protected void assertSize(int expectedSize) {
        assertEquals(expectedSize, table.size());
      }
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        table = create();
      }
    
      public void testContains() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

      }
    
      public static <K, V> Builder<K, V> builder() {
        return new Builder<K, V>();
      }
    
      public static <K, V> Builder<K, V> builderWithExpectedSize(int expectedSize) {
        return new Builder<K, V>(expectedSize);
      }
    
      static <K, V> Entry<K, V> entryOf(K key, V value) {
        checkEntryNotNull(key, value);
        return Maps.immutableEntry(key, value);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                response.readBytesWireFormat(buffer, 0);
    
                // Then
                assertEquals(size * 2, response.getAllocationSize());
                assertEquals(expectedSize, response.getEndOfFile());
                assertEquals(expectedSize, response.getSize());
            }
    
            @Test
            @DisplayName("Should handle response with different fileId and fileName combinations")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            int size = request.size();
    
            // Then
            // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 4 bytes for cancel structure
            int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 4 + 7) / 8) * 8;
            assertEquals(expectedSize, size, "Size calculation should be correct and 8-byte aligned");
        }
    
        @Test
        @DisplayName("Test writeBytesWireFormat writes correct bytes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

       * @since 23.1
       */
      public static <K, V> Builder<K, V> builderWithExpectedSize(int expectedSize) {
        checkNonnegative(expectedSize, "expectedSize");
        return new Builder<>(expectedSize);
      }
    
      static void checkNoConflict(
          boolean safe, String conflictDescription, Object entry1, Object entry2) {
        if (!safe) {
          throw conflictException(conflictDescription, entry1, entry2);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        return unsafeDelegateList(list);
      }
    
      public static <E> Builder<E> builder() {
        return new Builder<E>();
      }
    
      public static <E> Builder<E> builderWithExpectedSize(int expectedSize) {
        return new Builder<E>(expectedSize);
      }
    
      public static final class Builder<E> extends ImmutableCollection.Builder<E> {
        private final ArrayList<E> contents;
    
        public Builder() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            // Expected size: 24 (fixed) + 2 * number of dialects
            int expectedSize = 24 + 2 * defaultDialects.length;
            assertEquals(expectedSize, request.size());
        }
    
        @Test
        @DisplayName("Test size calculation with single dialect")
        void testSizeWithSingleDialect() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

            void testSizeCalculation(int[] ciphers, int expectedSize) {
                // Arrange
                context = new EncryptionNegotiateContext(mockConfig, ciphers);
    
                // Act
                int size = context.size();
    
                // Assert
                assertEquals(expectedSize, size);
            }
    
            static Stream<Arguments> provideCipherArrays() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
Back to top