Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for testLimit (0.05 seconds)

  1. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 2));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 100));
      }
    
      public void testLimit() throws Exception {
        byte[] big = newPreFilledByteArray(5);
        InputStream bin = new ByteArrayInputStream(big);
        InputStream lin = ByteStreams.limit(bin, 2);
    
        // also test available
        lin.mark(2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 2));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 100));
      }
    
      public void testLimit() throws Exception {
        byte[] big = newPreFilledByteArray(5);
        InputStream bin = new ByteArrayInputStream(big);
        InputStream lin = ByteStreams.limit(bin, 2);
    
        // also test available
        lin.mark(2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testSkip_illegalArgument() {
        assertThrows(
            IllegalArgumentException.class, () -> FluentIterable.from(asList("a", "b", "c")).skip(-1));
      }
    
      public void testLimit() {
        Iterable<String> iterable = Lists.newArrayList("foo", "bar", "baz");
        FluentIterable<String> limited = FluentIterable.from(iterable).limit(2);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertThat(Iterables.toString(list)).isEqualTo("[]");
    
        list = newArrayList("yam", "bam", "jam", "ham");
        assertThat(Iterables.toString(list)).isEqualTo("[yam, bam, jam, ham]");
      }
    
      public void testLimit() {
        Iterable<String> iterable = newArrayList("foo", "bar", "baz");
        Iterable<String> limited = Iterables.limit(iterable, 2);
    
        List<String> expected = ImmutableList.of("foo", "bar");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            ComponentUtil.register(new MockVirtualHostHelper(), "virtualHostHelper");
            ComponentUtil.register(new MockRoleQueryHelper(), "roleQueryHelper");
        }
    
        @Test
        public void test_init() {
            try {
                labelTypeHelper.init();
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/DocumentHelperTest.java

            assertEquals("L1:aaa\nL2:bbb\nL3:ccc", documentHelper.appendLineNumber("L", "aaa\nbbb\nccc"));
        }
    
        @Test
        public void test_init() {
            DocumentHelper documentHelper = new DocumentHelper();
    
            try {
                documentHelper.init();
            } catch (Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/helper/LanguageHelperTest.java

                    languageHelper.getReindexScriptSource());
        }
    
        @Test
        public void test_init() {
            try {
                languageHelper.init();
                // Should not throw exception
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/RelatedContentHelperTest.java

            ComponentUtil.register(new MockFessConfig(), "fessConfig");
    
            inject(relatedContentHelper);
            inject(virtualHostHelper);
        }
    
        @Test
        public void test_init() {
            // Setup test data
            List<RelatedContent> testData = new ArrayList<>();
            testData.add(createRelatedContent("test", "Test Content", ""));
            mockBhv.setTestData(testData);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14.6K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/SearchLogHelperTest.java

        }
    
        private void setupMockComponents() {
            ComponentUtil.setFessConfig(new MockFessConfig());
            ComponentUtil.register(new MockSystemHelper(), "systemHelper");
        }
    
        @Test
        public void test_init() {
            SearchLogHelper helper = new SearchLogHelper();
            helper.init();
    
            assertNotNull(helper.userInfoCache);
            assertNotNull(helper.searchLogLogger);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/helper/SambaHelperTest.java

            assertEquals(0, SambaHelper.SID_TYPE_USE_NONE);
            assertEquals(1, SambaHelper.SID_TYPE_USER);
            assertEquals(5, SambaHelper.SID_TYPE_WKN_GRP);
        }
    
        @Test
        public void test_init() {
            ComponentUtil.setFessConfig(new MockFessConfig());
            sambaHelper.init();
            assertNotNull(sambaHelper.fessConfig);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.9K bytes
    - Click Count (0)
Back to Top