Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for testLength (0.29 seconds)

  1. 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);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5K bytes
    - Click Count (0)
  2. 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();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  3. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (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];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.7K bytes
    - Click Count (0)
Back to Top