- Sort Score
- Result 10 results
- Languages All
Results 541 - 550 of 727 for examples (0.05 sec)
-
src/test/java/jcifs/smb/HandlerTest.java
when(mockCtx.getConfig()).thenReturn(mockCfg); when(mockCfg.isTraceResourceUsage()).thenReturn(false); Handler handler = newHandlerWith(mockCtx); URL url = new URL(null, "smb://example-host/share/", new Handler()); // Act URLConnection conn = handler.openConnection(url); // Assert assertNotNull(conn);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/CollectorTester.java
import java.util.stream.Collector; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Tester for {@code Collector} implementations. * * <p>Example usage: * * <pre> * CollectorTester.of(Collectors.summingInt(Integer::parseInt)) * .expectCollects(3, "1", "2") * .expectCollects(10, "1", "4", "3", "2") * .expectCollects(5, "-3", "0", "8");Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 22:01:32 UTC 2025 - 6.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java
@CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_otherListWithDifferentElements() { ArrayList<E> other = new ArrayList<>(getSampleElements()); other.set(other.size() / 2, getSubjectGenerator().samples().e3()); assertFalse( "A List should not equal another List containing different elements.", getList().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* given at creation time, the natural order of elements is used. If no maximum size is given at * creation time, the queue is unbounded. * * <p>Usage example: * * {@snippet : * MinMaxPriorityQueue<User> users = MinMaxPriorityQueue.orderedBy(userComparator) * .maximumSize(1000) * .create(); * } *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 33.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MultimapBuilder.java
import java.util.TreeSet; import org.jspecify.annotations.Nullable; /** * An immutable builder for {@link Multimap} instances, letting you independently select the desired * behaviors (for example, ordering) of the backing map and value-collections. Example: * * {@snippet : * ListMultimap<UserId, ErrorResponse> errorsByUser = * MultimapBuilder.linkedHashKeys().arrayListValues().build(); * SortedSetMultimap<String, Method> methodsForName =Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 18K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ShortArrayAsListTest.java
return result; } public abstract static class TestShortListGenerator implements TestListGenerator<Short> { @Override public SampleElements<Short> samples() { return new SampleShorts(); } @Override public List<Short> create(Object... elements) { Short[] array = new Short[elements.length]; short i = 0;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java
return result; } public abstract static class TestLongListGenerator implements TestListGenerator<Long> { @Override public SampleElements<Long> samples() { return new SampleLongs(); } @Override public List<Long> create(Object... elements) { Long[] array = new Long[elements.length]; int i = 0;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.5K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
val bytes = "820b6578616d706c652e636f6d".decodeHex() assertThat(CertificateAdapters.generalName.fromDer(bytes)) .isEqualTo(generalNameDnsName to "example.com") assertThat(CertificateAdapters.generalName.toDer(generalNameDnsName to "example.com")) .isEqualTo(bytes) } @Test fun `extension with type hint for basic constraints`() { val extension = Extension(
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 31.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingMap.java
* href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. * * <p><b>Warning:</b> The methods of {@code ForwardingMap} forward <i>indiscriminately</i> to the * methods of the delegate. For example, overriding {@link #put} alone <i>will not</i> change the * behavior of {@link #putAll}, which can lead to unexpected behavior. In this case, you should
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 17:32:30 UTC 2025 - 9.8K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java
* might not run some of its listeners. The likely result is that the app will hang. (And of * course stack overflows are bad news in general. For example, we may have overflowed in the * middle of defining a class. If so, that class will never be loadable in this process.) The * best we can do (since logging may overflow the stack) is to let the error propagate. BecauseRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 20 18:03:37 UTC 2025 - 10.8K bytes - Viewed (0)