Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_sizeOf (0.09 sec)

  1. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            assertEquals("1.024EB", MemoryUtil.byteCountToDisplaySize(FileUtils.ONE_EB));
        }
    
        public void test_getUsedMemory() {
            assertTrue(MemoryUtil.getUsedMemory() >= 0);
        }
    
        public void test_sizeOf() throws Exception {
            // System.out.println("size: " + getObjectSize(""));
            assertEquals(24L, MemoryUtil.sizeOf(Integer.MAX_VALUE));
            assertEquals(24L, MemoryUtil.sizeOf(Long.MAX_VALUE));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractorTest.java

            assertTrue(content.contains("テスト"));
            assertTrue(content.contains("テキスト"));
        }
    
        public void test_getTika_zip_bom() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/zip/test_size.zip");
            tikaExtractor.maxCompressionRatio = 1;
            tikaExtractor.maxUncompressionSize = 10000;
            try {
                tikaExtractor.getText(in, null);
                fail();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top