Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 268 for 1024 (0.03 sec)

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

            // Test exact thresholds
            assertEquals("1.024KB", MemoryUtil.byteCountToDisplaySize(1024L));
            assertEquals("1.024MB", MemoryUtil.byteCountToDisplaySize(1024L * 1024L));
            assertEquals("1.024GB", MemoryUtil.byteCountToDisplaySize(1024L * 1024L * 1024L));
        }
    
        public void test_sizeOf_nullObject() {
            assertEquals(0L, MemoryUtil.sizeOf(null));
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SetViewTest.java

        assertMinSize(union(setSizeRange(10, 20), setSizeRange(11, 12)), 11);
        assertMinSize(union(setSizeRange(11, 12), setSizeRange(10, 20)), 11);
      }
    
      public void testUnion_maxSize() {
        assertMaxSize(union(emptySet(), emptySet()), 0);
        assertMaxSize(union(setSize(2), setSize(3)), 5);
        assertMaxSize(union(setSize(3), setSize(2)), 5);
        assertMaxSize(union(setSizeRange(10, 20), setSizeRange(11, 12)), 32);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            assertNull(directoryLeaseManager.getCachedDirectoryListing(directoryPath));
    
            // Setup mock files
            when(mockFile1.getName()).thenReturn("file1.txt");
            when(mockFile1.length()).thenReturn(1024L);
            when(mockFile1.lastModified()).thenReturn(1000L);
            when(mockFile1.isDirectory()).thenReturn(false);
            when(mockFile1.getAttributes()).thenReturn(0x20);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/ContentLengthHelperTest.java

    import org.dbflute.utflute.core.PlainTestCase;
    
    /**
     * @author shinsuke
     *
     */
    public class ContentLengthHelperTest extends PlainTestCase {
        private static long DEFAULT_MAX_LENGTH = 10L * 1024L * 1024L;
    
        public ContentLengthHelper contentLengthHelper;
    
        @Override
        protected void setUp() throws Exception {
            super.setUp();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

              public Integer load(Integer key) throws Exception {
                return i++;
              }
            };
    
        LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder().build(loader);
    
        cache.put(10, 20);
    
        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            NdrBuffer buf = new NdrBuffer(new byte[1024], 0);
            m.encode(buf);
            assertTrue(m.alloc_hint > 0);
        }
    
        @Test
        void testEncodeWritesCorrectHeader() throws Exception {
            TestMessage m = new TestMessage();
            m.ptype = 0;
            m.flags = 0x05;
            m.call_id = 0x123;
    
            NdrBuffer buf = new NdrBuffer(new byte[1024], 0);
            m.encode(buf);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

        class ConstructorTests {
    
            @Test
            @DisplayName("Should create lock with valid parameters")
            void testConstructorWithValidParameters() {
                long offset = 1024L;
                long length = 2048L;
                int flags = Smb2Lock.SMB2_LOCKFLAG_EXCLUSIVE_LOCK;
    
                lock = new Smb2Lock(offset, length, flags);
    
                assertNotNull(lock);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                when(mockInfo.getSize()).thenReturn(1024L);
                when(mockInfo.getCreateTime()).thenReturn(1000000L);
                when(mockInfo.getLastWriteTime()).thenReturn(2000000L);
    
                // Use the mock
                response.info = mockInfo;
    
                // Verify interactions
                assertEquals(0x20, response.info.getAttributes());
                assertEquals(1024L, response.info.getSize());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/arena/arena_test.go

    	}
    	if cap(ts) != 100 {
    		t.Errorf("Slice() cap = %d, want 100", cap(ts))
    	}
    	ts[1].n = 42
    }
    
    func TestSmokeLarge(t *testing.T) {
    	a := arena.NewArena()
    	defer a.Free()
    	for i := 0; i < 10*64; i++ {
    		_ = arena.New[T2](a)
    	}
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Oct 12 20:23:36 UTC 2022
    - 742 bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java

        /** The initialization parameter map. */
        protected Map<String, Object> initParamMap;
    
        /** The maximum cached content size in bytes. Default is 1MB. */
        protected long maxCachedContentSize = 1024L * 1024L; // 1MB
    
        /** The access timeout in seconds. Default is null (no timeout). */
        protected Integer accessTimeout = null; // seconds
    
        /** The maximum content length in bytes. Default is null (no limit). */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top