- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 69 for 65537 (0.01 sec)
-
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
assertThat(ioe.message).isEqualTo("google.com") val cause = ioe.cause!! assertThat(cause).isInstanceOf<IOException>() assertThat(cause).hasMessage("response size exceeds limit (65536 bytes): 65537 bytes") } } @Test fun failOnBadResponse() { server.enqueue(dnsResponse("00")) try { dns.lookup("google.com") fail<Any>() } catch (ioe: IOException) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
public static final int MAX_DOMAIN_LENGTH = 255; public static final int MAX_SHARE_NAME_LENGTH = 80; public static final int MAX_BUFFER_SIZE = 65536; // 64KB default max buffer public static final int MAX_SMB2_BUFFER_SIZE = 8388608; // 8MB for SMB2/3 public static final int MAX_CREDITS = 65535; // Patterns for validation private static final Pattern VALID_USERNAME = Pattern.compile("^[a-zA-Z0-9._\\-@]+$");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
@Test @DisplayName("Test edge case with maximum buffer index") void testReadBytesWireFormatMaxBufferIndex() throws SMBProtocolDecodingException { byte[] buffer = new byte[65536]; // Large buffer int bufferIndex = 65534; // Near the end // Set structure size to 2 SMBUtil.writeInt2(2, buffer, bufferIndex); int result = response.readBytesWireFormat(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/util/InputValidatorTest.java
assertDoesNotThrow(() -> InputValidator.validatePort(65535)); assertThrows(IllegalArgumentException.class, () -> InputValidator.validatePort(0)); assertThrows(IllegalArgumentException.class, () -> InputValidator.validatePort(-1)); assertThrows(IllegalArgumentException.class, () -> InputValidator.validatePort(65536)); } @Test @DisplayName("Test timeout validation")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
// Arrange byte[] largeBuffer = new byte[65536]; // 64KB buffer // Act & Assert assertEquals(0, response.writeSetupWireFormat(largeBuffer, 0)); assertEquals(0, response.writeParametersWireFormat(largeBuffer, 32768)); assertEquals(0, response.writeDataWireFormat(largeBuffer, 65535)); assertEquals(0, response.readSetupWireFormat(largeBuffer, 0, 65536));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
// Arrange byte[] largeBuffer = new byte[65536]; // 64KB buffer // Act & Assert assertEquals(0, response.writeSetupWireFormat(largeBuffer, 0)); assertEquals(0, response.writeParametersWireFormat(largeBuffer, 32768)); assertEquals(0, response.writeDataWireFormat(largeBuffer, 65535)); assertEquals(0, response.readSetupWireFormat(largeBuffer, 0, 65536));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
} @Test void testWriteSingleByte() throws IOException, CIFSException { // Given when(mockTreeHandle.isSMB2()).thenReturn(true); when(mockTreeHandle.getSendBufferSize()).thenReturn(65536); when(mockFileHandle.isValid()).thenReturn(false, true); // First false to trigger ensureOpen, then true when(mockFileHandle.getFileId()).thenReturn(new byte[16]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
} @Test @DisplayName("Should handle large arrays efficiently") void testWriteBytesWireFormatWithLargeArray() { // Given byte[] dst = new byte[65536]; // 64KB array // When int result = response.writeBytesWireFormat(dst, 32768); // Then assertEquals(0, result); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
assertEquals(65535, decodedSize); assertEquals(65535, referral.getSize()); assertEquals(65535, referral.getServerType()); assertEquals(65535, referral.getRFlags()); assertEquals(65535, referral.getProximity()); assertEquals(65535, referral.getTtl()); } @Test public void testEmptyStrings() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 22K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
}); } @Test public void testValidMessageSize() throws Exception { validator.validateMessageSize(1024, false); validator.validateMessageSize(65535, true); validator.validateMessageSize(1048576, false); // 1MB for SMB2 } @Test public void testMessageSizeTooSmall() throws Exception { assertThrows(SmbException.class, () -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0)