Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testMemoryBasedCacheWithEmptyData (1.52 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: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top