Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testLength (0.12 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            assertThrows(Exception.class, () -> {
                smbRandomAccessFile.read();
            });
        }
    
        @Test
        void testLength() throws SmbException {
            long expectedLength = 1024L;
            when(smbFile.length()).thenReturn(expectedLength);
    
            assertEquals(expectedLength, smbRandomAccessFile.length());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

            long result = instance.lastModified();
            assertEquals(expResult, result);
        }
    
        /**
         * Test of length method, of class SmbShareInfo.
         */
        @Test
        void testLength() {
            SmbShareInfo instance = new SmbShareInfo();
            long expResult = 0L;
            long result = instance.length();
            assertEquals(expResult, result);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        assertExpectedLines(source.readLines());
      }
    
      public void testIsEmpty() throws IOException {
        assertEquals(expected.isEmpty(), source.isEmpty());
      }
    
      public void testLength() throws IOException {
        assertEquals(expected.length(), source.length());
      }
    
      public void testLengthIfKnown() throws IOException {
        Optional<Long> lengthIfKnown = source.lengthIfKnown();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

            byte[] dst = new byte[100];
            int dstIndex = 10;
    
            // Act
            int bytesWritten = trans.writeDataWireFormat(dst, dstIndex);
    
            // Assert
            assertEquals(TEST_LENGTH, bytesWritten);
    
            // Verify data is copied correctly
            byte[] copiedData = new byte[TEST_LENGTH];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top