- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 235 for zeros (0.47 sec)
-
src/test/java/jcifs/smb/SpnegoContextTest.java
} @Test @DisplayName("initSecContext with null buffer and non-zero len throws NPE") void testInitSecContextNullBufferNonZeroLen() throws Exception { SpnegoContext ctx = newContext(); // A null buffer with non-zero len leads to NPE while slicing input assertThrows(NullPointerException.class, () -> ctx.initSecContext(null, 0, 1));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryResponseTest.java
"readRDataWireFormat should return 6 even if address is zero"); NbtAddress[] addrEntry = (NbtAddress[]) addrEntryField.get(nameQueryResponse); assertNull(addrEntry[0], "NbtAddress should be null when address is zero"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
assertEquals(0, result); // Test with different parameters result = response.readSetupWireFormat(buffer, 10, 50); assertEquals(0, result); // Test with zero length result = response.readSetupWireFormat(buffer, 0, 0); assertEquals(0, result); } @Test @DisplayName("Test readParametersWireFormat returns 0")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java
// Then assertEquals(8, result); assertEquals(0xffffL, instance.getCount()); } /** * Test of readParameterWordsWireFormat with zero count */ @Test public void testReadParameterWordsWireFormatZeroCount() { // Given byte[] buffer = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 };Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
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/smb/SmbTreeImpl.java
synchronized (this) { log.debug("Usage dropped to zero, release session"); if (this.sessionAcquired.compareAndSet(true, false)) { this.session.release(); } } } else if (usage < 0) { log.error("Usage count dropped below zero " + this); dumpResource();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K 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/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/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/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)