Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testMemoryBasedCacheDefensiveCopy (0.11 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

            } catch (IllegalArgumentException e) {
                assertTrue(e.getMessage().contains("data must not be null"));
            }
        }
    
        @Test
        public void testMemoryBasedCacheDefensiveCopy() throws IOException {
            byte[] data = "Hello, World!".getBytes();
            byte[] originalData = data.clone();
            ContentCache cache = new ContentCache(data);
    
            // Modify the original array
    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