Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testMemoryBasedCacheWithEmptyData (0.2 seconds)

  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);
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
Back to Top