- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for skips (0.4 sec)
-
src/main/java/jcifs/smb1/util/transport/Transport.java
* * @param response the response object to populate * @throws IOException if an I/O error occurs */ protected abstract void doRecv(Response response) throws IOException; /** * Skips an unexpected or unrecognized message. * * @throws IOException if an I/O error occurs */ protected abstract void doSkip() throws IOException; /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
} }); assertEquals("open fail", ex.getMessage()); verify(tree, times(1)).release(); // closed on constructor failure } @Test @DisplayName("Iteration skips '.' and '..' and returns valid entries") void iterationSkipsDotAndDotDot() throws Exception { // Arrange stubAcquireReturnsSelf(); FileEntry initial = entry("a");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
Arrays.fill(buffer, (byte) 0xFF); lock.encode(buffer, 0); // Reserved field bytes are not modified by the encode method // The implementation just skips these bytes without writing zeros assertEquals(-1, SMBUtil.readInt4(buffer, 20)); } } @Nested @DisplayName("Flag Constants Tests") class FlagConstantsTests {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
} @Test void testOpenConnection_WithSystemPropertyHandler_SkipsJcifsPackage() throws Exception { // This test verifies that the handler resolution mechanism correctly skips the 'jcifs' // package when it is listed in the 'java.protocol.handler.pkgs' system property. // We use mock handlers since actual system handlers might not be available in test environment.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
// When copy.encode(buffer, startIndex); // Then // The implementation skips 4 reserved bytes without writing zeros // This is consistent with the actual implementation behavior // The reserved bytes remain as they were in the buffer for (int i = 0; i < 4; i++) { assertEquals((byte) 0xFF, buffer[startIndex + SOURCE_KEY_SIZE + 4 + i],Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
assertEquals(24, SMBUtil.readInt2(buffer, 0)); // Flags (2 bytes) - should be 0 by default assertEquals(0, SMBUtil.readInt2(buffer, 2)); // Reserved (4 bytes) - The implementation skips writing these bytes, // so they will have the initial pattern (0xCCCCCCCC) // This is expected behavior as seen in the implementation at line 131 assertEquals((byte) 0xCC, buffer[4]);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacLogonInfo.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
SocketInputStream sis = new SocketInputStream(in); // Try to skip more than available // Skip uses read internally, which may throw IOException when it tries to read the next header try { long skipped = sis.skip(10); // If it doesn't throw, it should only skip what's available assertEquals(3, skipped); } catch (IOException e) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
byte[] nameBytes = originalFileName.getBytes(StandardCharsets.UTF_16LE); byte[] buffer = new byte[100]; buffer[0] = 1; // replaceIfExists = true // Skip 7 reserved bytes (1-7) // Skip 8 bytes for RootDirectory (8-15) SMBUtil.writeInt4(nameBytes.length, buffer, 16); System.arraycopy(nameBytes, 0, buffer, 20, nameBytes.length);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
} @Test @DisplayName("skip: positive advances; non-positive returns 0") void skipBehavior() throws Exception { SmbFileInputStream in = newStream(); assertEquals(0, in.skip(0)); assertEquals(0, in.skip(-1)); assertEquals(5, in.skip(5)); } } @Nested @DisplayName("SMB1 interactions")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0)