- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 601 for negative (0.04 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
@Test @DisplayName("Should encode negative values as unsigned") void testEncodingWithNegativeValues() { long negativeOffset = -1L; long negativeLength = -100L; int negativeFlags = -1; lock = new Smb2Lock(negativeOffset, negativeLength, negativeFlags); lock.encode(buffer, 0); // Negative values should be encoded as unsigned
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/EncodableTest.java
@Test @DisplayName("encode() throws when dstIndex is negative") void encodeThrowsWhenDstIndexNegative() { byte[] src = makeSeq(3); Encodable enc = new ByteEncodable(src, 0, 3); byte[] dst = new byte[3]; assertThrows(ArrayIndexOutOfBoundsException.class, () -> enc.encode(dst, -1), "System.arraycopy should throw for negative dstIndex"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
assertEquals("00001234", Hexdump.toHexString(0x1234, 8)); assertEquals("1234", Hexdump.toHexString(0x1234, 4)); assertEquals("34", Hexdump.toHexString(0x1234, 2)); // Test negative values (treated as unsigned) assertEquals("FFFFFFFF", Hexdump.toHexString(-1, 8)); assertEquals("FFFF", Hexdump.toHexString(-1, 4)); assertEquals("FF", Hexdump.toHexString(-1, 2)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
byte[] dst = new byte[1024]; int result = setupAndX.writeBytesWireFormat(dst, 0); // Verify that data was written assertTrue(result >= 0, "writeBytesWireFormat should return non-negative value"); } @Test void testReadParameterWordsWireFormat() { byte[] buffer = new byte[1024]; int result = setupAndX.readParameterWordsWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/ContentLengthHelper.java
* @param mimeType The MIME type for which to set the maximum length * @param maxLength The maximum content length in bytes * @throws CrawlerSystemException if the MIME type is blank or maxLength is negative */ public void addMaxLength(final String mimeType, final long maxLength) { if (StringUtil.isBlank(mimeType)) { throw new CrawlerSystemException("MIME type is a blank."); }
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
} @Test @DisplayName("Should throw exception on negative index") void testEncodeWithNegativeIndex() { assertThrows(IllegalArgumentException.class, () -> testRequest.encode(testBuffer, -1), "Should throw exception for negative index"); } @Test @DisplayName("Should throw exception on buffer overflow")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
@Test @DisplayName("Should handle negative offset in verify method") void testVerifyNegativeOffset() { byte[] data = new byte[128]; boolean result = digest.verify(data, -1, 100, 0, response); assertFalse(result, "Should return false for negative offset"); } @Test @DisplayName("Should handle negative length in verify method")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
pom.xml
<include>**/*TestSuite.java</include> </includes> <systemPropertyVariables> <networkaddress.cache.ttl>-1</networkaddress.cache.ttl> <networkaddress.cache.negative.ttl>-1</networkaddress.cache.negative.ttl> </systemPropertyVariables> <useSystemClassLoader>false</useSystemClassLoader> <useModulePath>false</useModulePath> <forkCount>1</forkCount> <reuseForks>true</reuseForks>
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java
AvTimestamp avTimestamp = new AvTimestamp(rawBytes); assertEquals(expectedTimestamp, avTimestamp.getTimestamp()); } /** * Test getTimestamp method with a negative timestamp (though timestamps are usually positive). * This tests the underlying SMBUtil.readInt8 behavior. */ @Test public void testGetTimestampNegative() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/pager/JobLogPager.java
public void setExistNextPage(final boolean existNextPage) { this.existNextPage = existNextPage; } /** * Gets the number of items per page. * If the page size is not set or is zero or negative, returns the default page size. * * @return the number of items per page */ public int getPageSize() { if (pageSize <= 0) { pageSize = getDefaultPageSize(); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.6K bytes - Viewed (0)