- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,201 for because (0.1 sec)
-
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
new AbstractFuture<Object>() { @Override public String pendingToString() { return "cause=[Because this test isn't done]"; } }; assertThat(testFuture.toString()) .matches( "[^\\[]+\\[status=PENDING, info=\\[cause=\\[Because this test isn't done\\]\\]\\]"); TimeoutException e = assertThrows(TimeoutException.class, () -> testFuture.get(1, NANOSECONDS));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java
import jcifs.smb.SmbException; @ExtendWith(MockitoExtension.class) class LsaPolicyHandleTest { @Mock private DcerpcHandle mockDcerpcHandle; // Mocking MsrpcLsarOpenPolicy2 and MsrpcLsarClose is tricky because they are created inside the constructor/method. // We need to use ArgumentCaptor or a custom Answer to control their behavior. // For now, let's assume we can mock their behavior through the sendrecv method of DcerpcHandle.Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SortedSetMultimap.java
* have the provided key, an empty collection is returned. * * <p>Changes to the returned collection will update the underlying multimap, and vice versa. * * <p>Because a {@code SortedSetMultimap} has unique sorted values for a given key, this method * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the * {@link Multimap} interface. */ @OverrideRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5.2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Monitor.java
* lost, because the signal may be sent to a condition whose sole waiter has just been * interrupted. * * Imagine a monitor with multiple guards. A thread enters the monitor, satisfies all the guards, * and leaves, calling signalNextWaiter. With traditional locks and conditions, all the conditions
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 42.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
when(mockFile.getAttributes()).thenReturn(SmbFile.ATTR_READONLY | SmbFile.ATTR_HIDDEN | SmbFile.ATTR_SYSTEM); // When calling accept // Then it should be accepted because the READONLY attribute is present assertTrue(dosFileFilter.accept(mockFile)); } /** * Tests that the accept method returns false when the file attributes do not
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
android/guava/src/com/google/common/xml/ParametricNullness.java
* Contrast the method above to: * * <ul> * <li>methods whose return type is a type variable but which can never return {@code null}, * typically because the type forbids nullable type arguments: For example, {@code * ImmutableList.get} returns {@code E}, but that value is never {@code null}. (Accordingly,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 16:20:21 UTC 2024 - 3.1K bytes - Viewed (0) -
guava/src/com/google/common/io/ParametricNullness.java
* Contrast the method above to: * * <ul> * <li>methods whose return type is a type variable but which can never return {@code null}, * typically because the type forbids nullable type arguments: For example, {@code * ImmutableList.get} returns {@code E}, but that value is never {@code null}. (Accordingly,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 16:20:21 UTC 2024 - 3.1K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/BloomFilterStrategies.java
} } return true; } }, /** * This strategy uses all 128 bits of {@link Hashing#murmur3_128} when hashing. It looks different * from the implementation in MURMUR128_MITZ_32 because we're avoiding the multiplication in the * loop and doing a (much simpler) += hash2. We're also changing the index to a positive number by * AND'ing with Long.MAX_VALUE instead of flipping the bits. */Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.6K bytes - Viewed (0) -
futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java
* family. <b>Avoid</b> creating a mock or stub {@code Future}. Mock and stub implementations are * fragile because they assume that only certain methods will be called and because they often * implement subtleties of the API improperly. * * <p><b>Custom implementation</b>: Avoid implementing {@code ListenableFuture} from scratch. If you
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 8K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ListenableFuture.java
* family. <b>Avoid</b> creating a mock or stub {@code Future}. Mock and stub implementations are * fragile because they assume that only certain methods will be called and because they often * implement subtleties of the API improperly. * * <p><b>Custom implementation</b>: Avoid implementing {@code ListenableFuture} from scratch. If you
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 8K bytes - Viewed (0)