Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for testLimit (1.59 sec)

  1. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("[]", Iterables.toString(list));
    
        list = newArrayList("yam", "bam", "jam", "ham");
        assertEquals("[yam, bam, jam, ham]", Iterables.toString(list));
      }
    
      public void testLimit() {
        Iterable<String> iterable = newArrayList("foo", "bar", "baz");
        Iterable<String> limited = Iterables.limit(iterable, 2);
    
        List<String> expected = ImmutableList.of("foo", "bar");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("[]", Iterables.toString(list));
    
        list = newArrayList("yam", "bam", "jam", "ham");
        assertEquals("[yam, bam, jam, ham]", Iterables.toString(list));
      }
    
      public void testLimit() {
        Iterable<String> iterable = newArrayList("foo", "bar", "baz");
        Iterable<String> limited = Iterables.limit(iterable, 2);
    
        List<String> expected = ImmutableList.of("foo", "bar");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> iterator = Collections.<String>emptyList().iterator();
        assertEquals("[]", Iterators.toString(iterator));
      }
    
      @SuppressWarnings("JUnitIncompatibleType") // Fails with j2kt.
      public void testLimit() {
        List<String> list = new ArrayList<>();
        assertThrows(IllegalArgumentException.class, () -> Iterators.limit(list.iterator(), -1));
    
        assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> iterator = Collections.<String>emptyList().iterator();
        assertEquals("[]", Iterators.toString(iterator));
      }
    
      @SuppressWarnings("JUnitIncompatibleType") // Fails with j2kt.
      public void testLimit() {
        List<String> list = new ArrayList<>();
        assertThrows(IllegalArgumentException.class, () -> Iterators.limit(list.iterator(), -1));
    
        assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java

        }
    
        @Override
        public void tearDown() throws Exception {
            super.tearDown();
            FileUtils.deleteDirectory(testDir);
        }
    
        public void test_init() {
            final DictionaryManager dictionaryManager = new DictionaryManager();
            dictionaryManager.init();
            assertEquals(0, dictionaryManager.creatorList.size());
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt

      @After
      fun cleanup() {
        StrictMode.setThreadPolicy(
          ThreadPolicy
            .Builder()
            .permitAll()
            .build(),
        )
      }
    
      @Test
      fun testInit() {
        Platform.resetForTests()
    
        applyStrictMode()
    
        // Not currently safe
        // See https://github.com/square/okhttp/pull/8248
        OkHttpClient()
    
        assertThat(violations).hasSize(1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 22 14:39:30 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/FileTypeHelperTest.java

        private FileTypeHelper fileTypeHelper;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            fileTypeHelper = new FileTypeHelper();
        }
    
        public void test_init() {
            try {
                fileTypeHelper.init();
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
        public void test_add() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/SearchLogHelperTest.java

        }
    
        private void setupMockComponents() {
            ComponentUtil.setFessConfig(new MockFessConfig());
            ComponentUtil.register(new MockSystemHelper(), "systemHelper");
        }
    
        public void test_init() {
            SearchLogHelper helper = new SearchLogHelper();
            helper.init();
    
            assertNotNull(helper.userInfoCache);
            assertNotNull(helper.searchLogLogger);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/DuplicateHostHelperTest.java

            url = "http://www.bar.com:8080/";
            result = "http://www.bar.com:8080/";
            assertEquals(result, duplicateHostHelper.convert(url));
        }
    
        public void test_init() {
            DuplicateHostHelper helper = new DuplicateHostHelper();
    
            try {
                helper.init();
                assertNotNull(helper.duplicateHostList);
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            ComponentUtil.register(new MockVirtualHostHelper(), "virtualHostHelper");
            ComponentUtil.register(new MockRoleQueryHelper(), "roleQueryHelper");
        }
    
        public void test_init() {
            try {
                labelTypeHelper.init();
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
        public void test_load() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
Back to top