- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ContentCache (0.08 sec)
-
src/test/java/org/codelibs/curl/CurlResponseTest.java
@Test public void testContentCache() { CurlResponse response = new CurlResponse(); byte[] data = "test content".getBytes(); ContentCache cache = new ContentCache(data); response.setContentCache(cache); // ContentCache is not directly accessible, but we can test through content methods assertNotNull(response); } @TestRegistered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
@Test public void testMemoryBasedCacheConstructor() { byte[] data = "Hello, World!".getBytes(); ContentCache cache = new ContentCache(data); assertNotNull(cache); } @Test public void testMemoryBasedCacheConstructorWithNull() { try { new ContentCache((byte[]) null); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) {Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
} dfos.flush(); final ContentCache contentCache; logger.fine(() -> "Response in " + (dfos.isInMemory() ? "Memory" : "File")); if (dfos.isInMemory()) { contentCache = new ContentCache(dfos.getData()); } else { contentCache = new ContentCache(dfos.getFile()); }Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Mon Nov 24 03:10:07 UTC 2025 - 18.6K bytes - Viewed (0)