- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testLength (4.97 sec)
-
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()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0)