- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 173 for toho (0.39 sec)
-
src/test/java/org/codelibs/core/io/FileUtilTest.java
fail("Expected IORuntimeException for large file"); } catch (final IORuntimeException e) { assertTrue("Error message should mention file size", e.getMessage().contains("File too large")); } } /** * Test readBytes with file within size limit * * @throws Exception */ @Test public void testReadBytes_NormalFile() throws Exception {
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/smb1/util/transport/Transport.java
} finally { synchronized (run_thread) { if (run_thread != thread) { /* Thread no longer the one setup for this transport -- * doConnect returned too late, just ignore. */ if ((ex0 != null) && (LogStream.level >= 2)) { ex0.printStackTrace(log); } return;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/taglib/FessFunctions.java
* @return formatted file size string (e.g., "1.5M", "2.3G", "512K") */ public static String formatFileSize(final long value) { double target = value; String unit = ""; // TODO l10n? String format = "0.#"; if (value < 1024) { format = "0"; } else if (value < 1024L * 1024L) { target /= 1024; unit = "K";
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 25.4K bytes - Viewed (1) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
byte[] smallBuffer = new byte[10]; assertThrows(ArrayIndexOutOfBoundsException.class, () -> testRequest.encode(smallBuffer, 5), "Should throw exception when buffer is too small"); } @Test @DisplayName("Should handle zero-length name") void testZeroLengthName() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
} @Test @DisplayName("Test buffer overflow protection") void testBufferOverflowProtection() { byte[] smallBuffer = new byte[23]; // One byte too small // Should throw ArrayIndexOutOfBoundsException assertThrows(ArrayIndexOutOfBoundsException.class, () -> { request.writeBytesWireFormat(smallBuffer, 0); }); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
System.arraycopy(body, 0, packet, header.length, body.length); BaseConfiguration config = new BaseConfiguration(true); byte[] outBuf = new byte[4]; // too small Smb2IoctlResponse resp = new Smb2IoctlResponse(config, outBuf); assertThrows(SMBProtocolDecodingException.class, () -> resp.decode(packet, 0)); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
} @Test @DisplayName("readTrailerWireFormat should throw IOException on incomplete data") void testReadTrailerWireFormatIncompleteData() { byte[] buffer = new byte[10]; // Too small buffer ByteArrayInputStream bais = new ByteArrayInputStream(buffer); SessionRequestPacket packet = new SessionRequestPacket(mockConfig); packet.length = 100; // Expect more data than availableRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UUIDTest.java
"Should throw IllegalArgumentException for non-hex character in UUID string"); } @Test @DisplayName("Constructor with too short UUID string should parse available data") void testConstructorWithStringTooShort() { // Arrange - UUID string missing last two characters String shortUuid = "00112233-4455-6677-8899-AABBCCDDEE";
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
if (buffer == null || buffer.length < bufferIndex + 4) { throw new SMBProtocolDecodingException("Buffer too small"); } return 4; } @Override public int encode(byte[] dst, int dstIndex) { return 4; }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/ElevateWordService.java
if (elevateWordPager.id != null) { cb.query().docMeta().setId_Equal(elevateWordPager.id); } // TODO Long, Integer, String supported only. // setup condition cb.query().addOrderBy_SuggestWord_Asc(); // search } /** * Imports elevate words from a CSV file.
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 18.3K bytes - Viewed (0)