- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for expectedLength (0.29 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java
int bytesWritten = smbComDelete.writeBytesWireFormat(dst, 0); // Expected format: buffer format (1 byte) + file name (null-terminated) int expectedLength = 1 + TEST_FILE_NAME.length() + 1; assertEquals(expectedLength, bytesWritten); assertEquals(0x04, dst[0]); // Buffer format assertEquals(TEST_FILE_NAME, new String(dst, 1, TEST_FILE_NAME.length())); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationTest.java
int bytesWritten = smbComQueryInformation.writeBytesWireFormat(dst, 0); // Expected format: buffer format (1 byte) + file name (null-terminated) int expectedLength = 1 + TEST_FILE_NAME.length() + 1; assertEquals(expectedLength, bytesWritten); assertEquals(0x04, dst[0]); // Buffer format assertEquals(TEST_FILE_NAME, new String(dst, 1, TEST_FILE_NAME.length())); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
smbRandomAccessFile.read(); }); } @Test void testLength() throws SmbException { long expectedLength = 1024L; when(smbFile.length()).thenReturn(expectedLength); assertEquals(expectedLength, smbRandomAccessFile.length()); } @Test void testSetLength() throws SmbException { long newLength = 2048L;
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) -
build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts
val group = r.group val module = r.module val expectedLength = group.length + 1 + module.length val isProvided = providedBy.any { // This method is called very often during dependency resolution. // This implementation avoids allocating new strings. it.length == expectedLength && it[group.length] == ':' && it.startsWith(group) &&Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 26 09:04:32 GMT 2026 - 9.5K bytes - Click Count (0)