- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 248 for zeros (0.26 sec)
-
src/test/java/org/codelibs/core/io/FileUtilTest.java
out.close(); } // Set maxSize smaller than file size (should throw exception) FileUtil.readBytes(file, 512); } /** * Test readBytes with custom maxSize of zero * * @throws Exception */ @Test(expected = IORuntimeException.class) public void testReadBytes_CustomMaxSize_Zero() throws Exception { final File file = tempFolder.newFile("any.txt");
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacUnicodeString.java
return this.pointer; } /** * Validates the provided string against this structure's metadata. * Checks that the string length matches the expected length and that * null strings have a zero pointer. * * @param string the string to validate * @return the validated string * @throws PACDecodingException if validation fails */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java
SmbComLogoffAndX msg = new SmbComLogoffAndX(null); assertEquals(0, msg.writeParameterWordsWireFormat(new byte[10], index), "Expected zero returned regardless of index"); assertEquals(0, msg.writeParameterWordsWireFormat(null, index), "Expected zero even when dst array is null"); } @ParameterizedTest @ValueSource(ints = { 0, 3, 9, -5 }) @DisplayName("writeBytesWireFormat always returns 0")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
static final byte SMB_COM_NT_CREATE_ANDX = (byte) 0xA2; /* * Some fields specify the offset from the beginning of the header. This * field should be used for calculating that. This would likely be zero * but an implemantation that encorporates the transport header(for * efficiency) might use a different initial bufferIndex. For example, * to eliminate copying data when writing NbtSession data one mightRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
assertEquals(fileName, decodedName); // Verify bytes written assertEquals(20 + nameLength, bytesWritten); } @Test @DisplayName("Test encode with non-zero destination index") void testEncodeWithNonZeroDestIndex() { String fileName = "test.txt"; FileRenameInformation2 info = new FileRenameInformation2(fileName, true);
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/spnego/NegTokenInitTest.java
NegTokenInit parsed = new NegTokenInit(bytes); assertNull(parsed.getMechanisms(), "Mechanisms should be null when absent"); assertEquals(0, parsed.getContextFlags(), "Flags should be zero when absent"); assertNull(parsed.getMechanismToken(), "Mechanism token should be null when absent"); assertNull(parsed.getMechanismListMIC(), "MIC should be null when absent"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java
AvTimestamp avTimestamp = new AvTimestamp(rawBytes); assertEquals(expectedTimestamp, avTimestamp.getTimestamp()); } /** * Test getTimestamp method with zero timestamp. */ @Test public void testGetTimestampZero() { long expectedTimestamp = 0L; byte[] rawBytes = new byte[8]; SMBUtil.writeInt8(expectedTimestamp, rawBytes, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
} @Test @DisplayName("release() below zero usage throws RuntimeCIFSException") void release_withoutAcquire_throwsRuntimeCIFSException() { // Arrange CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx); // Act & Assert: calling release without prior acquire drops usage below zeroRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
for (int i = 0; i < 24; i++) { assertEquals((byte) (i + 1), resumeKey[i], "Resume key byte " + i + " should match"); } } @Test @DisplayName("Test decode with non-zero buffer offset") void testDecodeWithOffset() throws SMBProtocolDecodingException { // Prepare test data with offset byte[] buffer = new byte[100]; int offset = 50;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0)