Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testMemoryBasedCacheWithEmptyData (0.09 sec)

  1. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

                int bytesRead2 = stream2.read(buffer2);
                assertEquals(testContent, new String(buffer2, 0, bytesRead2, "UTF-8"));
            }
        }
    
        @Test
        public void testMemoryBasedCacheWithEmptyData() throws IOException {
            byte[] data = new byte[0];
            ContentCache cache = new ContentCache(data);
    
            try (InputStream stream = cache.getInputStream()) {
                assertNotNull(stream);
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top