- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for testForEach (0.15 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/MultimapForEachTester.java
*/ @GwtCompatible @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. public class MultimapForEachTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { public void testForEach() { List<Entry<K, V>> entries = new ArrayList<>(); multimap().forEach((k, v) -> entries.add(mapEntry(k, v))); assertEqualIgnoringOrder(getSampleElements(), multimap().entries()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 1.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java
assertThat(indexed3.getElement(), is("ccc")); assertThat(it.hasNext(), is(not(true))); } /** * @throws Exception */ @Test public void testForEach() throws Exception { final List<String> list = newArrayList(); list.add("aaa"); list.add("bbb"); list.add("ccc"); for (final Indexed<String> indexed : indexed(list)) {
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/LineIteratorTest.java
assertThat(it.next(), is("ccc")); assertThat(it.hasNext(), is(not(true))); } /** * @throws Exception */ @Test public void testForEach() throws Exception { final StringReader reader = new StringReader("aaa\nbbb\nccc\n"); for (final String line : LineIterator.iterable(reader)) { System.out.println(line); } }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
pkg/registry/core/service/allocator/bitmap_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 10 08:56:31 UTC 2022 - 13.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
assertThat(ImmutableLongArray.of(13).contains(13)).isTrue(); assertThat(ImmutableLongArray.of().contains(21)).isFalse(); assertThat(iia.subArray(1, 5).contains(1)).isTrue(); } public void testForEach() { ImmutableLongArray.of().forEach(i -> fail()); ImmutableLongArray.of(0, 1, 3).subArray(1, 1).forEach(i -> fail()); AtomicLong count = new AtomicLong(0); ImmutableLongArray.of(0, 1, 2, 3)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 01 09:32:35 UTC 2023 - 20.2K bytes - Viewed (0) -
pkg/registry/core/service/portallocator/allocator_test.go
} if _, err := r.AllocateNext(); err != nil { t.Error(err) } if f := r.Free(); f != 0 { t.Errorf("expected free equal to 0 got: %d", f) } } func TestForEach(t *testing.T) { pr, err := net.ParsePortRange("10000-10200") if err != nil { t.Fatal(err) } testCases := []sets.Int{ sets.NewInt(), sets.NewInt(10000), sets.NewInt(10000, 10200),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 07:15:02 UTC 2024 - 14K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
assertThat(ImmutableDoubleArray.of(13).contains(13)).isTrue(); assertThat(ImmutableDoubleArray.of().contains(21)).isFalse(); assertThat(iia.subArray(1, 5).contains(1)).isTrue(); } public void testForEach() { ImmutableDoubleArray.of().forEach(i -> fail()); ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).forEach(i -> fail()); AtomicInteger count = new AtomicInteger(0); ImmutableDoubleArray.of(0, 1, 2, 3)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 01 09:32:35 UTC 2023 - 21.3K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/bitmap_test.go
} } if f := r.Free(); f != 0 { t.Errorf("expected free equal to 0 got: %d", f) } if r.max != 2 { t.Fatalf("expected range equal to 2, got: %v", r) } } func TestForEach(t *testing.T) { _, cidr, err := netutils.ParseCIDRSloppy("192.168.1.0/24") if err != nil { t.Fatal(err) } testCases := []sets.String{ sets.NewString(), sets.NewString("192.168.1.1"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 21.1K bytes - Viewed (0) -
analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisLibrarySourceModuleResolveReferenceTestGenerated.java
public void testExternalCompanionObject() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/ExternalCompanionObject.kt"); } @Test @TestMetadata("forEach.kt") public void testForEach() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/forEach.kt"); } @Test @TestMetadata("functionCall.kt") public void testFunctionCall() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 19:03:01 UTC 2024 - 175.9K bytes - Viewed (0) -
analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisLibrarySourceModuleResolveCallTestGenerated.java
public void testExternalCompanionObject() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/ExternalCompanionObject.kt"); } @Test @TestMetadata("forEach.kt") public void testForEach() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/forEach.kt"); } @Test @TestMetadata("functionCall.kt") public void testFunctionCall() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 19:03:00 UTC 2024 - 175.8K bytes - Viewed (0)