- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for testLimit (0.03 sec)
-
android/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);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.5K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 45.6K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 56.7K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt
@AfterEach 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 Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Nov 21 12:33:41 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/converter/AnalyzerConverterTest.java
// Test constructor initialization AnalyzerConverter testConverter = new AnalyzerConverter(client, settings); assertNotNull(testConverter); } @Test public void testInit() throws IOException { // Test init method (should do nothing) converter.init(); // No exception should be thrown } @TestRegistered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmServletTest.java
/** * Test the init method of the servlet. * Verifies that servlet is correctly initialized with parameters from ServletConfig. * @throws ServletException */ @Test void testInit() throws ServletException { assertDoesNotThrow(() -> ntlmServlet.init(servletConfig)); // Further assertions can be added here to check the internal state of the servlet if fields were protected/public }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0)