- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 248 for zeros (0.97 sec)
-
src/test/java/jcifs/config/MultiChannelConfigurationTest.java
assertEquals(1, config.getChannelBindingPolicy()); } @Test void testEdgeCaseValues() throws CIFSException { Properties props = new Properties(); // Test zero and negative values props.setProperty("jcifs.smb.client.maxChannels", "0"); PropertyConfiguration config = new PropertyConfiguration(props);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/config/BaseConfigurationTest.java
assertNotNull(configWithDefaults.getNativeOs()); assertTrue(configWithDefaults.getFlags2() != 0, "Flags2 should be non-zero"); assertTrue(configWithDefaults.getCapabilities() != 0, "Capabilities should be non-zero"); assertNotNull(configWithDefaults.getBroadcastAddress()); assertNotNull(configWithDefaults.getResolveOrder());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
assertThrows(Exception.class, () -> new Pac(pacData, keys)); } @Test void testZeroBufferCount() throws IOException { // Test PAC with zero buffers (missing required buffers) ByteArrayOutputStream baos = new ByteArrayOutputStream(); writeLittleEndianInt(baos, 0); // bufferCount = 0
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
@Test @DisplayName("Test readDataWireFormat with error code returns 4") void testReadDataWireFormatWithErrorCode() throws Exception { byte[] buffer = new byte[100]; // Set error code to non-zero setErrorCode(response, 1); int result = response.readDataWireFormat(buffer, 0, buffer.length); assertEquals(4, result); assertNull(response.getSecurityDescriptor()); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
int offset = 0; setHeaderStart(response, 64); // Write structure with zero length SMBUtil.writeInt2(9, buffer, offset); SMBUtil.writeInt2(80 - 64, buffer, offset + 2); SMBUtil.writeInt4(0, buffer, offset + 4); // Zero length // When int bytesRead = response.readBytesWireFormat(buffer, offset); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SID.java
*/ public boolean isEmpty() { return this.sub_authority_count == 0; } /** * Checks whether the SID is blank (all sub-authorities zero). * * @return whether the SID is blank (all sub-authorities zero) */ public boolean isBlank() { boolean blank = true; for (final int sub : this.sub_authority) { blank = blank && sub == 0; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
} else { SMBUtil.writeInt2(0, dst, dstIndex); SMBUtil.writeInt2(0, dst, dstIndex + 2); dstIndex += 4; } // one byte in buffer must be zero dst[dstIndex] = 0; dstIndex += 1; // Write SMB2_RDMA_TRANSFORM if using RDMA channel if (rdmaChannelInfo != null && channel == Smb2Constants.SMB2_CHANNEL_RDMA_V1) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
void testHasMoreElements() { // Test initial state assertTrue(response.hasMoreElements()); // Test after setting error code (not status) response.setTestErrorCode(1); // Non-zero errorCode indicates error assertFalse(response.hasMoreElements()); // Reset error and test hasMore flag response.setTestErrorCode(0); response.hasMore = false;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
} @Test @DisplayName("run method handles zero iterations") void testRunWithZeroIterations() { TestLocking t = new TestLocking(); t.url = "smb://test/file.txt"; t.numIter = 0; // Zero iterations // Should complete immediately t.run();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java
assertEquals(0, response.getData().length); // The decode method returns only the header size (16 bytes)\n assertEquals(16, bytesDecoded); } @Test @DisplayName("Test decode with non-zero buffer index") void testDecodeWithNonZeroBufferIndex() throws SMBProtocolDecodingException { // Prepare test data with offset int offset = 10;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0)