- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 16 for testLimit (0.17 seconds)
-
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) -
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) -
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) -
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) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
assertThat(Iterators.toString(iterator)).isEqualTo("[]"); } @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());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
assertThat(Iterators.toString(iterator)).isEqualTo("[]"); } @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());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
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) -
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); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 16.6K bytes - Click Count (0) -
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) -
src/test/java/org/codelibs/fess/helper/KeyMatchHelperTest.java
ComponentUtil.register(new SystemHelper(), "systemHelper"); ComponentUtil.register(new VirtualHostHelper(), "virtualHostHelper"); } @Test public void test_init() { try { keyMatchHelper.init(); } catch (Exception e) { // Expected due to missing dependencies in test environment assertNotNull(e); } }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.4K bytes - Click Count (0)