Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for testLength (0.06 sec)

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

                doReturn(mockTreeHandle).when(smbFile).ensureTreeConnected();
                when(mockTreeHandle.getConfig()).thenReturn(mockConfig);
            }
    
            @Test
            void testLength() throws SmbException {
                // Arrange
                long expectedLength = 1024L;
                doReturn(expectedLength).when(smbFile).length();
    
                // Act & Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

            assertEquals(0L, info.lastModified());
            assertEquals(0L, info.lastAccess());
        }
    
        @Test
        @DisplayName("Test length always returns 0")
        void testLength() {
            // Default instance
            assertEquals(0L, shareInfo.length());
    
            // Instance with values - length is still 0
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, TEST_TYPE, TEST_REMARK);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        }
    
        abstract void doIt(ImmutableLongArray.Builder builder, AtomicLong counter);
      }
    
      private static final Random random = new Random(42);
    
      public void testLength() {
        assertThat(ImmutableLongArray.of().length()).isEqualTo(0);
        assertThat(ImmutableLongArray.of(0).length()).isEqualTo(1);
        assertThat(ImmutableLongArray.of(0, 1, 3).length()).isEqualTo(3);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            // Verify
            assertEquals(expectedLastAccessTime, fileBothDirectoryInfo.lastAccess());
        }
    
        @Test
        @DisplayName("Test length returns correct end of file size")
        void testLength() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = createValidBuffer("file.txt", "FILE~1.TXT", true);
            long expectedEndOfFile = 1024L * 1024L; // 1MB
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        }
    
        abstract void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter);
      }
    
      private static final Random random = new Random(42);
    
      public void testLength() {
        assertThat(ImmutableDoubleArray.of().length()).isEqualTo(0);
        assertThat(ImmutableDoubleArray.of(0).length()).isEqualTo(1);
        assertThat(ImmutableDoubleArray.of(0, 1, 3).length()).isEqualTo(3);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        }
    
        abstract void doIt(ImmutableIntArray.Builder builder, AtomicInteger counter);
      }
    
      private static final Random random = new Random(42);
    
      public void testLength() {
        assertThat(ImmutableIntArray.of().length()).isEqualTo(0);
        assertThat(ImmutableIntArray.of(0).length()).isEqualTo(1);
        assertThat(ImmutableIntArray.of(0, 1, 3).length()).isEqualTo(3);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        }
    
        abstract void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter);
      }
    
      private static final Random random = new Random(42);
    
      public void testLength() {
        assertThat(ImmutableDoubleArray.of().length()).isEqualTo(0);
        assertThat(ImmutableDoubleArray.of(0).length()).isEqualTo(1);
        assertThat(ImmutableDoubleArray.of(0, 1, 3).length()).isEqualTo(3);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/escape/UnicodeEscaper.java

            int sizeNeeded = destIndex + charsSkipped + escaped.length;
            if (dest.length < sizeNeeded) {
              int destLength = sizeNeeded + (end - index) + DEST_PAD;
              dest = growBuffer(dest, destIndex, destLength);
            }
            // If we have skipped any characters, we need to copy them now.
            if (charsSkipped > 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/escape/UnicodeEscaper.java

            int sizeNeeded = destIndex + charsSkipped + escaped.length;
            if (dest.length < sizeNeeded) {
              int destLength = sizeNeeded + (end - index) + DEST_PAD;
              dest = growBuffer(dest, destIndex, destLength);
            }
            // If we have skipped any characters, we need to copy them now.
            if (charsSkipped > 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
Back to top